node-taglib-sharp / Exports / LocalFileAbstraction
This class implements IFileAbstraction to provide support for accessing the local/ standard file. This class is used as the standard file abstraction throughout the library.
• new LocalFileAbstraction(path)
Constructs and initializes a new instance from a specified path in the local file system
Throws
Error Thrown if path is falsy
| Name | Type | Description |
|---|---|---|
path |
string |
Path of the file to use in the new instance |
• get name(): string
Name or identifier used by the implementation
string
• get readStream(): IStream
Readable, seekable stream for the file referenced by the current instance.
• get writeStream(): IStream
Writable, seekable stream for the file referenced by the current instance.
▸ closeStream(stream): void
Closes a stream created by the current instance.
| Name | Type | Description |
|---|---|---|
stream |
IStream |
Stream created by the current instance. |
void