FS class abstract

Annotations
  • @JS()
  • @anonymous

Constructors

FS()

Properties

constants FSConstants
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

access(dynamic path, [dynamic modeOrCallback, dynamic callback]) → void
accessSync(dynamic path, [int mode]) → void
appendFile(dynamic file, dynamic data, [dynamic optionsOrCallback, dynamic callback]) → void
appendFileSync(dynamic file, dynamic data, [dynamic options]) → void
chmod(dynamic path, int mode, void callback(dynamic error)) → void
chmodSync(dynamic path, int mode) → void
chown(dynamic path, int uid, dynamic gid, void callback(dynamic error)) → void
chownSync(dynamic path, int uid, dynamic gid) → void
close(int fd, void callback(dynamic error)) → void
closeSync(int fd) → void
copyFile(dynamic src, dynamic dest, num flags, void callback(dynamic error)) → void
copyFileSync(dynamic src, dynamic dest, num flags) → void
createReadStream(dynamic path, [ReadStreamOptions options]) ReadStream
createWriteStream(dynamic path, [WriteStreamOptions options]) WriteStream
exists(dynamic path, void callback(bool exists)) → void
existsSync(dynamic path) bool
fchmod(int fd, int mode, void callback(dynamic error)) → void
fchmodSync(int fd, int mode) → void
fchown(int fd, int uid, dynamic gid, void callback(dynamic error)) → void
fchownSync(int fd, int uid, dynamic gid) → void
fdatasync(int fd, void callback(dynamic error)) → void
fdatasyncSync(int fd) → void
fstat(int fd, dynamic optionsOrCallback, [void callback(dynamic error, Stats stats)]) → void
fstatSync(int fd, [StatOptions options]) Stats
fsync(int fd, void callback(dynamic error)) → void
fsyncSync(int fd) → void
ftruncate(int fd, [dynamic lenOrCallback, dynamic callback]) → void
ftruncateSync(int fd, [dynamic len]) → void
futimes(int fd, dynamic atime, dynamic mtime, void callback(dynamic error)) → void
futimesSync(int fd, dynamic atime, dynamic mtime) → void
lchmod(dynamic path, int mode, void callback(dynamic error)) → void
lchmodSync(dynamic path, int mode) → void
lchown(dynamic path, int uid, dynamic gid, void callback(dynamic error)) → void
lchownSync(dynamic path, int uid, dynamic gid) → void
linkSync(dynamic existingPath, dynamic newPath) → void
lstat(dynamic path, dynamic optionsOrCallback, [void callback(dynamic error, Stats stats)]) → void
lstatSync(dynamic path, [StatOptions options]) Stats
mkdir(dynamic path, [dynamic optionsModeOrCallback, void callback(dynamic error)]) → void
mkdirSync(dynamic path, [dynamic optionsOrMode]) → void
mkdtemp(String prefix, [dynamic optionsOrCallback, void callback(dynamic error, String folder)]) → void
mkdtempSync(dynamic prefix, [dynamic options]) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(dynamic path, dynamic flags, [dynamic modeOrCallback, void callback(dynamic err, int fd)]) → void
openSync(dynamic path, dynamic flags, [int mode]) int
read(int fd, dynamic buffer, int offset, int length, int position, void callback(dynamic error, int bytesRead, Buffer buffer)) → void
readdir(dynamic path, [dynamic optionsOrCallback, void callback(dynamic err, List files)]) → void
readdirSync(dynamic path, [dynamic options]) List
readFile(dynamic path, [dynamic optionsOrCallback, void callback(dynamic error, dynamic data)]) → void
readFileSync(dynamic path, [dynamic options]) → dynamic
readlinkSync(dynamic path, [dynamic options]) → dynamic
readSync(int fd, dynamic buffer, int offset, int length, int position) int
realpath(dynamic path, [dynamic optionsOrCallback, void callback(dynamic error, dynamic resolvedPath)]) → void
realpathSync(dynamic path, [dynamic options]) String
rename(dynamic oldPath, dynamic newPath, void callback(dynamic error)) → void
renameSync(dynamic oldPath, dynamic newPath) → void
rmdir(dynamic path, dynamic optionsOrCallback, [void callback(dynamic error)]) → void
rmdirSync(dynamic path, [RmdirOptions options]) → void
stat(dynamic path, void callback(dynamic error, Stats stats)) → void
statSync(dynamic path) Stats
symlinkSync(dynamic target, dynamic path, [dynamic type]) → void
toString() String
A string representation of this object.
inherited
truncate(dynamic path, [dynamic lenOrCallback, dynamic callback]) → void
truncateSync(dynamic path, [int len]) → void
unlinkSync(dynamic path) → void
unwatchFile(dynamic filename, [Function listener]) → void
utimes(dynamic path, dynamic atime, dynamic mtime, void callback(dynamic error)) → void
utimesSync(dynamic path, dynamic atime, dynamic mtime) → void
watch(dynamic filename, [dynamic options, void listener(String eventType, dynamic filename)]) → void
watchFile(dynamic filename, [dynamic optionsOrListener, void listener(Stats current, Stats previous)]) → void
write(int fd, dynamic data, [dynamic arg1, dynamic arg2, dynamic arg3, Function callback]) → void
See official documentation on all possible argument combinations:
writeFile(dynamic file, dynamic data, [dynamic optionsOrCallback, void callback(dynamic error)]) → void
writeFileSync(dynamic file, dynamic data, [dynamic options]) → void
writeSync(int fd, dynamic data, [dynamic arg1, dynamic arg2, dynamic arg3]) int
See official documentation on all possible argument combinations:

Operators

operator ==(Object other) bool
The equality operator.
inherited