此组件由处于管理模式的软盘或硬盘驱动器提供。(对于非管理模式,请参见驱动器组件)
组件名:filesystem
。
回调函数:
spaceUsed():number
open(path:string[, mode:string='r']):number
seek(handle:number, whence:string, offset:number):number
makeDirectory(path:string):boolean
exists(path:string):boolean
isReadOnly():boolean
write(handle:number, value:string):boolean
spaceTotal():number
isDirectory(path:string):boolean
rename(from:string, to:string):boolean
list(path:string):table
lastModified(path:string):number
getLabel():string
remove(path:string):boolean
close(handle:number)
size(path:string):number
read(handle:number, count:number):string or nil
EOF
则返回nil
。setLabel(value:string):string