ai_old/js/lib/file.ts

23 lines
473 B
TypeScript
Raw Normal View History

2024-09-17 18:44:21 +08:00
// just for develop
export default {
read,
write,
dir,
stat
}
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 ''}
2024-09-17 18:44:21 +08:00
interface FileInfo {
Name: string
FullName: string
IsDir: boolean
Size: number
ModTime: number
}