ai_old/js/lib/file.ts

28 lines
597 B
TypeScript
Raw Normal View History

2024-09-17 18:44:21 +08:00
// just for develop
export default {
read,
write,
dir,
stat,
find,
remove,
copy
2024-09-17 18:44:21 +08:00
}
2024-09-18 18:29:21 +08:00
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}
2024-09-23 18:15:02 +08:00
function find(filename: string): string {return ''}
function remove(filename: string): void {}
function copy(from: string, to: string): void {}
2024-09-17 18:44:21 +08:00
interface FileInfo {
name: string
fullName: string
isDir: boolean
size: number
modTime: number
2024-09-17 18:44:21 +08:00
}