Static variables

staticfinalread onlyconstants:Table<String, Int>

Static methods

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

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

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

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

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

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

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

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

@:native("fs_closedir")staticclosedir(dir:Handle):Bool

@:native("fs_closedir")staticfs_closedir(dir:Handle, cb:(String, Bool) ‑> Void):Request

@:native("fs_copyfile")staticcopyfile(path:String, newPath:String, ?flags:CopyFlags):Bool

@:native("fs_copyfile")staticfs_copyfile(path:String, newPath:String, flags:Null<CopyFlags>, cb:(String, Bool) ‑> Void):Request

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@:native("fs_lchown")staticlchown(descriptor:String, uid:Int, gid:Int):Bool

@:native("fs_lchown")staticfs_lchown(descriptor:String, uid:Int, gid:Int, cb:(String, Bool) ‑> Void):Request

Not available on windows

@:native("fs_link")staticlink(oldpath:String, newpath:String):Result<Bool>

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

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

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

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

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

@:native("fs_mkdtemp")staticmkdtemp(template:String):Result<String>

@:native("fs_mkdtemp")staticfs_mkdtemp(template:String, cb:(String, String) ‑> Void):Request

@:native("fs_mkstemp")staticmkstemp(template:String):Result<FileDescriptor>

@:native("fs_mkstemp")staticfs_mkstemp(template:String, cb:(String, FileDescriptor, String) ‑> Void):Request

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

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

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

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

@:native("fs_opendir")staticopendir(path:String):Handle

@:native("fs_opendir")staticfs_opendir(path:String, cb:(String, Handle) ‑> Void, ?entries:Int):Request

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

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

@:native("fs_readdir")staticreaddir(path:Handle):Table<Int, NameType>

@:native("fs_readdir")staticfs_readdir(dir:Handle, cb:(String, Table<Int, NameType>) ‑> Void):Request

@:native("fs_readlink")staticreadlink(path:String):String

@:native("fs_readlink")staticfs_readlink(path:String, cb:(String, String) ‑> Void):Request

@:native("fs_realpath")staticrealpath(path:String):String

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

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

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

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

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

@:native("fs_scandir")staticscandir(path:String):ScanDirMarker

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

@:native("fs_scandir_next")staticscandir_next(scandir:ScanDirMarker):ScandirNext

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

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

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

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

@:native("fs_statfs")staticstatfs(path:String):StatFs

@:native("fs_statfs")staticfs_statfs(path:String, cb:(StatFs, Bool) ‑> Void):Request

@:native("fs_symlink")staticsymlink(oldpath:String, newpath:String, flags:Int):Bool

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

@:native("fs_unlink")staticunlink(file:String, content:String):Result<Bool>

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

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

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

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

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