W3cubDocs

/Haxe Lua

FileSystem

package lua.lib.luv.fs

@:luaRequire("luv") Available on lua

Static methods

@:native("fs_access") static access (path:String, mode:Int):Result<Bool>

@:native("fs_access") static fs_access (path:String, mode:Int, cb:String ‑> Bool ‑> Void):Request

@:native("fs_chmod") static chmod (path:String, mode:Int):Result<Bool>

@:native("fs_chmod") static fs_chmod (path:String, mode:Int, cb:String ‑> Bool ‑> Void):Request

@:native("fs_chown") static chown (path:String, uid:Int, gid:Int):Bool

@:native("fs_chown") static fs_chown (path:String, uid:Int, gid:Int, cb:String ‑> Bool ‑> Void):Request

@:native("fs_close") static close (file:FileDescriptor):Result<Bool>

@:native("fs_close") static fs_close (file:FileDescriptor, cb:String ‑> Bool ‑> Void):Request

@:native("fs_fchmod") static fchmod (descriptor:FileDescriptor, mode:Int):Result<Bool>

@:native("fs_fchmod") static fs_fchmod (descriptor:FileDescriptor, mode:Int, cb:String ‑> Bool ‑> Void):Request

@:native("fs_fchown") static fchown (descriptor:FileDescriptor, uid:Int, gid:Int):Bool

@:native("fs_fchown") static fs_fchown (descriptor:FileDescriptor, uid:Int, gid:Int, cb:String ‑> Bool ‑> Void):Request

@:native("fs_fdatasync") static fdatasync (descriptor:FileDescriptor):Result<Bool>

@:native("fs_fdatasync") static fs_fdatasync (descriptor:FileDescriptor, cb:String ‑> Bool ‑> Void):Request

@:native("fs_fstat") static fstat (descriptor:FileDescriptor):Result<Stat>

@:native("fs_fstat") static fs_fstat (descriptor:FileDescriptor, cb:String ‑> Stat ‑> Void):Request

@:native("fs_fsync") static fsync (descriptor:FileDescriptor):Result<Bool>

@:native("fs_fsync") static fs_fsync (descriptor:FileDescriptor, cb:String ‑> Bool ‑> Void):Request

@:native("fs_ftruncate") static ftruncate (descriptor:FileDescriptor, offset:Int):Result<Bool>

@:native("fs_ftruncate") static fs_ftruncate (descriptor:FileDescriptor, offset:Int, cb:String ‑> Bool ‑> Void):Request

@:native("fs_futime") static futime (descriptor:FileDescriptor, actime:Int, modtime:Int):Result<Bool>

@:native("fs_futime") static fs_futime (descriptor:FileDescriptor, actime:Int, modtime:Int, cb:String ‑> Bool ‑> Void):Request

@:native("fs_link") static fs_link (oldpath:String, newpath:String, cb:String ‑> Bool ‑> Void):Request

@:native("fs_lstat") static lstat (path:String):Result<Stat>

@:native("fs_lstat") static fs_lstat (path:String, cb:String ‑> Stat ‑> Void):Request

@:native("fs_mkdir") static mkdir (path:String, mode:Int):Result<Bool>

@:native("fs_mkdir") static fs_mkdir (path:String, mode:Int, cb:String ‑> Bool ‑> Void):Request

@:native("fs_mkdtemp") static mkdtemp (data:String):Result<Bool>

@:native("fs_mkdtemp") static fs_mkdtemp (data:String, cb:String ‑> Bool ‑> Void):Request

@:native("fs_open") static open (path:String, flags:Open, mode:Int):Result<FileDescriptor>

@:native("fs_open") static fs_open (path:String, flags:Open, mode:Int, ?cb:String ‑> FileDescriptor ‑> Void):Request

@:native("fs_read") static read (file:FileDescriptor, len:Int, offset:Int):Result<String>

@:native("fs_read") static fs_read (file:FileDescriptor, len:Int, offset:Int, ?cb:String ‑> String ‑> Void):Request

@:native("fs_realpath") static realpath (path:String):String

@:native("fs_realpath") static fs_realpath (path:String, cb:String ‑> String ‑> Void):Request

@:native("fs_rename") static rename (path:String, newpath:String):Result<Bool>

@:native("fs_rename") static fs_rename (path:String, newpath:String, cb:String ‑> Bool ‑> Void):Request

@:native("fs_rmdir") static rmdir (path:String):Result<Int>

@:native("fs_rmdir") static fs_rmdir (path:String, cb:String ‑> Bool ‑> Void):Request

@:native("fs_scandir") static scandir (path:String):ScanDirMarker

@:native("fs_scandir") static fs_scandir (path:String, cb:String ‑> Bool ‑> Void):Request

@:native("fs_scandir_next") static scandir_next (scandir:ScanDirMarker):ScandirNext

@:native("fs_sendfile") static sendfile (fin:FileDescriptor, fout:FileDescriptor):Result<Int>

@:native("fs_sendfile") static fs_sendfile (fin:FileDescriptor, fout:FileDescriptor, cb:String ‑> Int ‑> Void):Request

@:native("fs_stat") static stat (path:String):Result<Stat>

@:native("fs_stat") static fs_stat (path:String, cb:String ‑> Stat ‑> Void):Request

@:native("fs_symlink") static fs_symlink (oldpath:String, newpath:String, flags:Int, cb:String ‑> Bool ‑> Void):Request

@:native("fs_unlink") static fs_unlink (file:FileDescriptor, ?cb:String ‑> String ‑> Void):Request

@:native("fs_utime") static utime (path:String, actime:Int, modtime:Int):Result<Bool>

@:native("fs_utime") static fs_utime (path:String, actime:Int, modtime:Int, cb:String ‑> Bool ‑> Void):Request

@:native("fs_write") static write (file:FileDescriptor, content:String, offset:Int):Result<Bool>

@:native("fs_write") static fs_write (file:FileDescriptor, content:String, offset:Int, ?cb:String ‑> Bool ‑> Void):Int

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/lua/lib/luv/fs/FileSystem.html