filetime
Version:
Rust addon to change the creation time (btime), modified time (mtime), and access time (atime) of files, directories, and symbolic links on Windows, macOS, and Linux.
23 lines (20 loc) • 500 B
TypeScript
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export interface SetFileTimesOptions {
path: string
btime?: string
mtime?: string
atime?: string
}
export interface SetFileTimesResult {
error?: string
}
export interface FileTimesResult {
error?: string
btime?: string
mtime?: string
atime?: string
}
export declare function setFileTimes(options: SetFileTimesOptions): SetFileTimesResult
export declare function getFileTimes(path: string): FileTimesResult