FileSystem
package lua.lib.luv.fs
Available on lua
Static methods
staticaccess(path:String, mode:Int):Result<Bool>
staticfs_access(path:String, mode:Int, cb:(String, Bool) ‑> Void):Request
staticchmod(path:String, mode:Int):Result<Bool>
staticfs_chmod(path:String, mode:Int, cb:(String, Bool) ‑> Void):Request
staticchown(path:String, uid:Int, gid:Int):Bool
staticfs_chown(path:String, uid:Int, gid:Int, cb:(String, Bool) ‑> Void):Request
staticclose(file:FileDescriptor):Result<Bool>
staticfs_close(file:FileDescriptor, cb:(String, Bool) ‑> Void):Request
staticclosedir(dir:Handle):Bool
staticfs_closedir(dir:Handle, cb:Bool ‑> Void):Request
staticfchmod(descriptor:FileDescriptor, mode:Int):Result<Bool>
staticfs_fchmod(descriptor:FileDescriptor, mode:Int, cb:(String, Bool) ‑> Void):Request
staticfchown(descriptor:FileDescriptor, uid:Int, gid:Int):Bool
staticfs_fchown(descriptor:FileDescriptor, uid:Int, gid:Int, cb:(String, Bool) ‑> Void):Request
staticfdatasync(descriptor:FileDescriptor):Result<Bool>
staticfs_fdatasync(descriptor:FileDescriptor, cb:(String, Bool) ‑> Void):Request
staticfstat(descriptor:FileDescriptor):Result<Stat>
staticfs_fstat(descriptor:FileDescriptor, cb:(String, Stat) ‑> Void):Request
staticfsync(descriptor:FileDescriptor):Result<Bool>
staticfs_fsync(descriptor:FileDescriptor, cb:(String, Bool) ‑> Void):Request
staticftruncate(descriptor:FileDescriptor, offset:Int):Result<Bool>
staticfs_ftruncate(descriptor:FileDescriptor, offset:Int, cb:(String, Bool) ‑> Void):Request
staticfutime(descriptor:FileDescriptor, actime:Int, modtime:Int):Result<Bool>
staticfs_futime(descriptor:FileDescriptor, actime:Int, modtime:Int, cb:(String, Bool) ‑> Void):Request
staticlchown(descriptor:FileDescriptor, uid:Int, gid:Int):Bool
staticfs_lchown(descriptor:FileDescriptor, uid:Int, gid:Int, cb:(String, Bool) ‑> Void):Request
Not available on windows
staticlink(oldpath:String, newpath:String):Result<Bool>
staticfs_link(oldpath:String, newpath:String, cb:(String, Bool) ‑> Void):Request
staticlstat(path:String):Result<Stat>
staticfs_lstat(path:String, cb:(String, Stat) ‑> Void):Request
staticmkdir(path:String, mode:Int):Result<Bool>
staticfs_mkdir(path:String, mode:Int, cb:(String, Bool) ‑> Void):Request
staticmkdtemp(data:String):Result<Bool>
staticfs_mkdtemp(data:String, cb:(String, Bool) ‑> Void):Request
staticopen(path:String, flags:Open, mode:Int):Result<FileDescriptor>
staticfs_open(path:String, flags:Open, mode:Int, ?cb:(String, FileDescriptor) ‑> Void):Request
staticopendir(path:String):Handle
staticfs_opendir(path:String, cb:(Handle, Bool) ‑> Void):Request
staticread(file:FileDescriptor, len:Int, offset:Int):Result<String>
staticfs_read(file:FileDescriptor, len:Int, offset:Int, ?cb:(String, String) ‑> Void):Request
staticreaddir(path:String):Table<Int, NameType>
staticfs_readdir(dir:Handle, cb:(Table<Int, NameType>, Bool) ‑> Void):Request
staticreadlink(path:String):String
staticfs_readlink(path:String, cb:(String, String) ‑> Void):Request
staticrealpath(path:String):String
staticfs_realpath(path:String, cb:(String, String) ‑> Void):Request
staticrename(path:String, newpath:String):Result<Bool>
staticfs_rename(path:String, newpath:String, cb:(String, Bool) ‑> Void):Request
staticrmdir(path:String):Result<Int>
staticfs_rmdir(path:String, cb:(String, Bool) ‑> Void):Request
staticscandir(path:String):ScanDirMarker
staticfs_scandir(path:String, cb:(String, Bool) ‑> Void):Request
staticscandir_next(scandir:ScanDirMarker):ScandirNext
staticsendfile(fin:FileDescriptor, fout:FileDescriptor):Result<Int>
staticfs_sendfile(fin:FileDescriptor, fout:FileDescriptor, cb:(String, Int) ‑> Void):Request
staticstat(path:String):Result<Stat>
staticfs_stat(path:String, cb:(String, Stat) ‑> Void):Request
staticstatfs(path:String):StatFs
staticfs_statfs(path:String, cb:(StatFs, Bool) ‑> Void):Request
staticsymlink(oldpath:String, newpath:String, flags:Int):Bool
staticfs_symlink(oldpath:String, newpath:String, flags:Int, cb:(String, Bool) ‑> Void):Request
staticunlink(file:FileDescriptor, content:String):Result<String>
staticfs_unlink(file:FileDescriptor, ?cb:(String, String) ‑> Void):Request
staticutime(path:String, actime:Int, modtime:Int):Result<Bool>
staticfs_utime(path:String, actime:Int, modtime:Int, cb:(String, Bool) ‑> Void):Request
staticwrite(file:FileDescriptor, content:String, offset:Int):Result<Bool>
staticfs_write(file:FileDescriptor, content:String, offset:Int, ?cb:(String, Bool) ‑> Void):Int
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/lua/lib/luv/fs/FileSystem.html