package fs
fs package object
- Alphabetic
- By Inheritance
- fs
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait BigIntStats extends Object with IStats[BigInt, BigInt]
fs.Stats (Stat Time Values) - Objects returned from fs.stat(), fs.lstat() and fs.fstat() and their synchronous counterparts are of this type.
fs.Stats (Stat Time Values) - Objects returned from fs.stat(), fs.lstat() and fs.fstat() and their synchronous counterparts are of this type.
- Annotations
- @JSType() @native()
BigIntStats { dev: 2114n, ino: 48064969n, mode: 33188n, nlink: 1n, uid: 85n, gid: 100n, rdev: 0n, size: 527n, blksize: 4096n, blocks: 8n, atimeMs: 1318289051000n, mtimeMs: 1318289051000n, ctimeMs: 1318289051000n, birthtimeMs: 1318289051000n, atimeNs: 1318289051000000000n, mtimeNs: 1318289051000000000n, ctimeNs: 1318289051000000000n, birthtimeNs: 1318289051000000000n, atime: Mon, 10 Oct 2011 23:24:11 GMT, mtime: Mon, 10 Oct 2011 23:24:11 GMT, ctime: Mon, 10 Oct 2011 23:24:11 GMT, birthtime: Mon, 10 Oct 2011 23:24:11 GMT }
- Since
0.1.21
Example: - trait BufferIOResult[T] extends Object
- Annotations
- @JSType() @native()
- type BufferLike = |[TypedArray[_, _], DataView]
- type Dirent = fs.Fs.Dirent
- trait FSConstants extends Object
An object containing commonly used constants for file system operations
An object containing commonly used constants for file system operations
- Annotations
- @JSType() @native()
- trait FSStatWatcher extends Object with IEventEmitter
A successful call to fs.watchFile() method will return a new fs.StatWatcher object.
A successful call to fs.watchFile() method will return a new fs.StatWatcher object.
- Annotations
- @JSType() @native()
- trait FSWatcher extends Object with IEventEmitter
fs.FSWatcher - Objects returned from fs.watch() are of this type.
fs.FSWatcher - Objects returned from fs.watch() are of this type.
- Annotations
- @JSType() @native()
- implicit final class FSWatcherExtensions[T <: FSWatcher] extends AnyVal
File System Watcher Extensions
- trait FSWatcherOptions extends Object
- Annotations
- @JSType()
- trait FileAppendOptions extends Object
- Annotations
- @JSType()
- trait FileEncodingOptions extends Object
- Annotations
- @JSType()
- trait FileInputOptions extends Object
- Annotations
- @JSType()
- trait FileOutputOptions extends Object
- Annotations
- @JSType()
- trait FileWatcherOptions extends Object
- Annotations
- @JSType()
- type FileWriteOptions = FileAppendOptions
- trait Fs extends Object with FSConstants
File I/O is provided by simple wrappers around standard POSIX functions.
File I/O is provided by simple wrappers around standard POSIX functions. To use this module do require('fs'). All the methods have asynchronous and synchronous forms.
The asynchronous form always takes a completion callback as its last argument. The arguments passed to the completion callback depend on the method, but the first argument is always reserved for an exception. If the operation was completed successfully, then the first argument will be null or undefined.
When using the synchronous form any exceptions are immediately thrown. You can use try/catch to handle exceptions or allow them to bubble up.
- Annotations
- @JSType() @native()
- implicit final class FsDirExtensions extends AnyVal
Dir Extensions
- implicit final class FsExtensions extends AnyVal
File System Extensions
- trait IStats[TInt, TFloat] extends Object
- Annotations
- @JSType() @native()
- trait MkdirOptions extends Object
- Annotations
- @JSType()
- trait OpendirOptions extends Object
- Annotations
- @JSType()
- type Output = |[String, Buffer]
- type Path = |[|[Uint8Array, String], URL]
- trait ReadFileOptions extends Object
- Annotations
- @JSType()
- trait ReadOptions extends Object
- Annotations
- @JSType()
- class ReadStream extends Readable
fs.ReadStream - ReadStream is a Readable Stream.
fs.ReadStream - ReadStream is a Readable Stream.
- Annotations
- @JSType() @native() @JSImport("fs", "ReadStream")
- See also
https://nodejs.org/api/stream.html#stream_class_stream_readable
- implicit final class ReadStreamExtensions[R <: ReadStream] extends AnyVal
- type ReaddirArrays = |[Array[String], Array[Buffer]]
- type ReaddirArrays2 = |[ReaddirArrays, Array[Dirent]]
- trait ReaddirOptions extends Object
- Annotations
- @JSType()
- trait RealpathObject extends Object
- Annotations
- @JSType() @native()
- trait RmdirOptions extends Object
- Annotations
- @JSType()
- trait StatOptions extends Object
- Annotations
- @JSType()
- trait Stats extends Object with IStats[Int, Double]
fs.Stats (Stat Time Values) - Objects returned from fs.stat(), fs.lstat() and fs.fstat() and their synchronous counterparts are of this type.
fs.Stats (Stat Time Values) - Objects returned from fs.stat(), fs.lstat() and fs.fstat() and their synchronous counterparts are of this type.
- Annotations
- @JSType() @native()
Stats { dev: 2114, ino: 48064969, mode: 33188, nlink: 1, uid: 85, gid: 100, rdev: 0, size: 527, blksize: 4096, blocks: 8, atimeMs: 1318289051000.1, mtimeMs: 1318289051000.1, ctimeMs: 1318289051000.1, birthtimeMs: 1318289051000.1, atime: Mon, 10 Oct 2011 23:24:11 GMT, mtime: Mon, 10 Oct 2011 23:24:11 GMT, ctime: Mon, 10 Oct 2011 23:24:11 GMT, birthtime: Mon, 10 Oct 2011 23:24:11 GMT }
- Since
0.1.21
Example: - type StatsVariant = |[Stats, BigIntStats]
- type Time = |[|[Int, String], Date]
- class WriteStream extends Writable
fs.WriteStream - WriteStream is a Writable Stream.
fs.WriteStream - WriteStream is a Writable Stream.
- Annotations
- @JSType() @native() @JSImport("fs", "WriteStream")
- See also
https://nodejs.org/api/fs.html#fs_class_fs_writestream
- implicit final class WriteStreamExtensions[T <: WriteStream] extends AnyVal
Write Stream Events
Value Members
- object FSWatcherOptions
- object FileAppendOptions
- object FileEncodingOptions
- object FileInputOptions
- object FileOutputOptions
- object FileWatcherOptions
- object Fs extends Object with Fs
File System Singleton
File System Singleton
- Annotations
- @native() @JSImport("fs", JSImport.Namespace)
- object MkdirOptions
- object OpendirOptions
- object ReadFileOptions
- object ReadOptions
- object ReaddirOptions
- object RmdirOptions
- object StatOptions