28 lines
597 B
TypeScript
28 lines
597 B
TypeScript
// just for develop
|
|
|
|
export default {
|
|
read,
|
|
write,
|
|
dir,
|
|
stat,
|
|
find,
|
|
remove,
|
|
copy
|
|
}
|
|
|
|
function read(filename: string): string {return ''}
|
|
function write(filename: string, data: any): void {}
|
|
function dir(filename: string): Array<FileInfo> {return null}
|
|
function stat(filename: string): FileInfo {return null}
|
|
function find(filename: string): string {return ''}
|
|
function remove(filename: string): void {}
|
|
function copy(from: string, to: string): void {}
|
|
|
|
interface FileInfo {
|
|
name: string
|
|
fullName: string
|
|
isDir: boolean
|
|
size: number
|
|
modTime: number
|
|
}
|