file/file.ts

34 lines
819 B
TypeScript
Raw Permalink Normal View History

2024-10-11 12:02:48 +08:00
// just for develop
export default {
read,
readBytes,
write,
dir,
stat,
find,
remove,
rename,
copy,
cache
}
function read(filename: string): string {return ''}
function readBytes(filename: string): any {return null}
function write(filename: string, data: any): void {}
function dir(filename: string): Array<FileInfo> {return null as any}
function stat(filename: string): FileInfo {return null as any}
function find(filename: string): string {return ''}
function remove(filename: string): void {}
function rename(from: string, to: string): void {}
function copy(from: string, to: string): void {}
function cache(filename: string, isCompress: boolean): void {}
interface FileInfo {
name: string
fullName: string
isDir: boolean
size: number
modTime: number
}