W3cubDocs

/Haxe

FileSystem

package lua.lib.luv.fs

Available on lua

Static methods

static access (path:String, mode:Int):Result<Bool>

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

static chmod (path:String, mode:Int):Result<Bool>

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

static chown (path:String, uid:Int, gid:Int):Bool

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

static close (file:FileDescriptor):Result<Bool>

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

static fchmod (descriptor:FileDescriptor, mode:Int):Result<Bool>

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

static fchown (descriptor:FileDescriptor, uid:Int, gid:Int):Bool

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

static fdatasync (descriptor:FileDescriptor):Result<Bool>

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

static fstat (descriptor:FileDescriptor):Result<Stat>

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

static fsync (descriptor:FileDescriptor):Result<Bool>

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

static ftruncate (descriptor:FileDescriptor, offset:Int):Result<Bool>

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

static futime (descriptor:FileDescriptor, actime:Int, modtime:Int):Result<Bool>

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

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

static lstat (path:String):Result<Stat>

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

static mkdir (path:String, mode:Int):Result<Bool>

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

static mkdtemp (data:String):Result<Bool>

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

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

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

static read (file:FileDescriptor, len:Int, offset:Int):Result<String>

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

static realpath (path:String):String

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

static rename (path:String, newpath:String):Result<Bool>

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

static rmdir (path:String):Result<Int>

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

static scandir (path:String):ScanDirMarker

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

static scandir_next (scandir:ScanDirMarker):ScandirNext

static sendfile (fin:FileDescriptor, fout:FileDescriptor):Result<Int>

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

static stat (path:String):Result<Stat>

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

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

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

static utime (path:String, actime:Int, modtime:Int):Result<Bool>

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

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

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

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