36 lines
906 B
TypeScript
36 lines
906 B
TypeScript
// just for develop
|
|
|
|
export default {
|
|
exists,
|
|
read,
|
|
readBytes,
|
|
write,
|
|
dir,
|
|
stat,
|
|
find,
|
|
remove,
|
|
rename,
|
|
copy,
|
|
cache
|
|
}
|
|
|
|
function exists(filename: string): boolean { return false }
|
|
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
|
|
}
|