34 lines
819 B
TypeScript
34 lines
819 B
TypeScript
|
// 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
|
||
|
}
|