package fs
fs package object
- Alphabetic
- By Inheritance
- fs
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type EventType = String
-
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
- @RawJSType() @native()
-
class
FSWatcherOptions
extends Object
FS Watcher Options
FS Watcher Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
FileAppendOptions
extends Object
File Append Options
File Append Options
- Annotations
- @RawJSType() @ScalaJSDefined()
-
class
FileEncodingOptions
extends Object
File Encoding Options
File Encoding Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- type FileIOError = SystemError
-
class
FileInputOptions
extends Object
File Input Options
File Input Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- type FileMode = Integer
-
class
FileOutputOptions
extends Object
File Input Options
File Input Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- type FileType = Int
-
class
FileWatcherOptions
extends Object
File Watcher Options
File Watcher Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- type Flags = |[String, Int]
-
trait
Fs
extends Object with IEventEmitter
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
- @RawJSType() @native()
- type FsCallback0 = Function1[FileIOError, Any]
- type FsCallback1[A] = Function2[FileIOError, A, Any]
- type FsCallback2[A, B] = Function3[FileIOError, A, B, Any]
- type FsCallback3[A, B, C] = Function4[FileIOError, A, B, C, Any]
-
implicit final
class
FsExtensions
extends AnyVal
File System Extensions
- type GID = Int
-
trait
ReadStream
extends Object with Readable
fs.ReadStream - ReadStream is a Readable Stream.
fs.ReadStream - ReadStream is a Readable Stream.
- Annotations
- @RawJSType() @native()
- See also
https://nodejs.org/api/stream.html#stream_class_stream_readable
-
trait
Stats
extends Object
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
- @RawJSType() @native()
- Since
0.1.21
- type UID = Int
-
trait
WriteStream
extends Object with Writable
fs.WriteStream - WriteStream is a Writable Stream.
fs.WriteStream - WriteStream is a Writable Stream.
- Annotations
- @RawJSType() @native()
- See also
https://nodejs.org/api/fs.html#fs_class_fs_writestream
Value Members
-
object
FSWatcher
File System Watcher Companion
-
object
Fs
extends Object with Fs
File System Singleton
File System Singleton
- Annotations
- @native() @JSImport( "fs" , JSImport.Namespace )
-
object
ReadStream
Read Stream Companion
-
object
WriteStream
Write Stream Companion