TarFS
Defined in: src/tar/fs.ts:22
Extends
Section titled “Extends”ReadonlyMixin&AsyncFSMethods<this> &FileSystem<this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TarFS(
options):TarFS
Defined in: src/tar/fs.ts:30
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”TarFS
Overrides
Section titled “Overrides”Readonly(Sync(FileSystem)).constructor
Properties
Section titled “Properties”_mountPoint?
Section titled “_mountPoint?”
protectedoptional_mountPoint?:string
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:143
Internal
The last place this file system was mounted
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem))._mountPoint
protected_uuid:`${string}-${string}-${string}-${string}-${string}`
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:149
Internal
The UUID of the file system.
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem))._uuid
attributes
Section titled “attributes”
readonlyattributes:ConstMap<FileSystemAttributes, keyofFileSystemAttributes,void|CaseFold|undefined> &Map<string,any>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:154
FileSystemAttributes
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).attributes
protecteddata:Uint8Array
Defined in: src/tar/fs.ts:23
directories
Section titled “directories”
protecteddirectories:Map<string,Set<string>>
Defined in: src/tar/fs.ts:25
protectedfiles:Map<string,Uint8Array<ArrayBufferLike>>
Defined in: src/tar/fs.ts:24
inodes
Section titled “inodes”
protectedinodes:Map<string,Inode>
Defined in: src/tar/fs.ts:27
label?
Section titled “label?”
optionallabel?:string
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:138
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).label
readonlyname:string
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:137
The name for this file system. For example, tmpfs for an in memory one
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).name
options
Section titled “options”
readonlyoptions:TarOptions
Defined in: src/tar/fs.ts:30
readonlytype:number
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:132
A unique ID for this kind of file system. Currently unused internally, but could be used for partition tables or something
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).type
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get uuid():
`${string}-${string}-${string}-${string}-${string}`
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:150
Returns
Section titled “Returns”`${string}-${string}-${string}-${string}-${string}`
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).uuid
Methods
Section titled “Methods”createFile()
Section titled “createFile()”Call Signature
Section titled “Call Signature”createFile(
path,flag,mode):Promise<never>
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:10
Parameters
Section titled “Parameters”string
string
number
Returns
Section titled “Returns”Promise<never>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).createFile
Call Signature
Section titled “Call Signature”createFile(
path,options):Promise<InodeLike<number>>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:186
Create the file at path with the given options.
Parameters
Section titled “Parameters”string
options
Section titled “options”CreationOptions
Returns
Section titled “Returns”Promise<InodeLike<number>>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).createFile
createFileSync()
Section titled “createFileSync()”Call Signature
Section titled “Call Signature”createFileSync(
path,flag,mode):never
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:11
Parameters
Section titled “Parameters”string
string
number
Returns
Section titled “Returns”never
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).createFileSync
Call Signature
Section titled “Call Signature”createFileSync(
path,options):InodeLike
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:190
Create the file at path with the given options.
Parameters
Section titled “Parameters”string
options
Section titled “options”CreationOptions
Returns
Section titled “Returns”InodeLike
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).createFileSync
exists()
Section titled “exists()”exists(
path):Promise<boolean>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:202
Test whether or not path exists.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<boolean>
Inherited from
Section titled “Inherited from”existsSync()
Section titled “existsSync()”existsSync(
path):boolean
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:206
Test whether or not path exists.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).existsSync
link()
Section titled “link()”Call Signature
Section titled “Call Signature”link(
srcpath,dstpath):Promise<never>
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:18
Parameters
Section titled “Parameters”srcpath
Section titled “srcpath”string
dstpath
Section titled “dstpath”string
Returns
Section titled “Returns”Promise<never>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).link
Call Signature
Section titled “Call Signature”link(
target,link):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:207
Parameters
Section titled “Parameters”target
Section titled “target”string
string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).link
linkSync()
Section titled “linkSync()”Call Signature
Section titled “Call Signature”linkSync(
srcpath,dstpath):never
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:19
Parameters
Section titled “Parameters”srcpath
Section titled “srcpath”string
dstpath
Section titled “dstpath”string
Returns
Section titled “Returns”never
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).linkSync
Call Signature
Section titled “Call Signature”linkSync(
target,link):void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:208
Parameters
Section titled “Parameters”target
Section titled “target”string
string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).linkSync
mkdir()
Section titled “mkdir()”Call Signature
Section titled “Call Signature”mkdir(
path,mode):Promise<never>
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:16
Parameters
Section titled “Parameters”string
number
Returns
Section titled “Returns”Promise<never>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).mkdir
Call Signature
Section titled “Call Signature”mkdir(
path,options):Promise<InodeLike<number>>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:195
Parameters
Section titled “Parameters”string
options
Section titled “options”CreationOptions
Returns
Section titled “Returns”Promise<InodeLike<number>>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).mkdir
mkdirSync()
Section titled “mkdirSync()”Call Signature
Section titled “Call Signature”mkdirSync(
path,mode):never
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:17
Parameters
Section titled “Parameters”string
number
Returns
Section titled “Returns”never
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).mkdirSync
Call Signature
Section titled “Call Signature”mkdirSync(
path,options):InodeLike
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:196
Parameters
Section titled “Parameters”string
options
Section titled “options”CreationOptions
Returns
Section titled “Returns”InodeLike
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).mkdirSync
read()
Section titled “read()”
abstractread(path,buffer,start,end):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:217
Reads into a buffer
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array
The buffer to read into. You must set the byteOffset and byteLength appropriately!
number
The offset into the file to start reading from
number
The position in the file to stop reading
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).read
readdir()
Section titled “readdir()”
abstractreaddir(path):Promise<string[]>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:197
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<string[]>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).readdir
readdirSync()
Section titled “readdirSync()”readdirSync(
path):string[]
Defined in: src/tar/fs.ts:100
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
Overrides
Section titled “Overrides”Readonly(Sync(FileSystem)).readdirSync
readSync()
Section titled “readSync()”readSync(
path,buffer,offset,end):void
Defined in: src/tar/fs.ts:110
Reads into a buffer
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array
The buffer to read into. You must set the byteOffset and byteLength appropriately!
offset
Section titled “offset”number
number
The position in the file to stop reading
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Readonly(Sync(FileSystem)).readSync
ready()
Section titled “ready()”ready():
Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:173
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).ready
readySync()
Section titled “readySync()”readySync():
void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:174
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).readySync
rename()
Section titled “rename()”Call Signature
Section titled “Call Signature”rename(
oldPath,newPath):Promise<never>
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:8
Parameters
Section titled “Parameters”oldPath
Section titled “oldPath”string
newPath
Section titled “newPath”string
Returns
Section titled “Returns”Promise<never>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).rename
Call Signature
Section titled “Call Signature”rename(
oldPath,newPath):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:175
Parameters
Section titled “Parameters”oldPath
Section titled “oldPath”string
newPath
Section titled “newPath”string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).rename
renameSync()
Section titled “renameSync()”Call Signature
Section titled “Call Signature”renameSync(
oldPath,newPath):never
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:9
Parameters
Section titled “Parameters”oldPath
Section titled “oldPath”string
newPath
Section titled “newPath”string
Returns
Section titled “Returns”never
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).renameSync
Call Signature
Section titled “Call Signature”renameSync(
oldPath,newPath):void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:176
Parameters
Section titled “Parameters”oldPath
Section titled “oldPath”string
newPath
Section titled “newPath”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).renameSync
rmdir()
Section titled “rmdir()”Call Signature
Section titled “Call Signature”rmdir(
path):Promise<never>
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:14
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<never>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).rmdir
Call Signature
Section titled “Call Signature”rmdir(
path):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:193
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).rmdir
rmdirSync()
Section titled “rmdirSync()”Call Signature
Section titled “Call Signature”rmdirSync(
path):never
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:15
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”never
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).rmdirSync
Call Signature
Section titled “Call Signature”rmdirSync(
path):void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:194
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).rmdirSync
stat()
Section titled “stat()”
abstractstat(path):Promise<InodeLike<number>>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:177
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<InodeLike<number>>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).stat
statSync()
Section titled “statSync()”statSync(
path):Inode
Defined in: src/tar/fs.ts:93
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Inode
Overrides
Section titled “Overrides”Readonly(Sync(FileSystem)).statSync
streamRead()
Section titled “streamRead()”streamRead(
path,options):ReadableStream
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:241
Read a file using a stream.
Parameters
Section titled “Parameters”string
options
Section titled “options”StreamOptions
Returns
Section titled “Returns”ReadableStream
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).streamRead
streamWrite()
Section titled “streamWrite()”streamWrite(
path,options):WritableStream
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:246
Write a file using stream.
Parameters
Section titled “Parameters”string
options
Section titled “options”StreamOptions
Returns
Section titled “Returns”WritableStream
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).streamWrite
sync()
Section titled “sync()”Call Signature
Section titled “Call Signature”sync():
Promise<never>
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:22
Returns
Section titled “Returns”Promise<never>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).sync
Call Signature
Section titled “Call Signature”sync():
Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:209
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).sync
syncSync()
Section titled “syncSync()”Call Signature
Section titled “Call Signature”syncSync():
never
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:23
Returns
Section titled “Returns”never
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).syncSync
Call Signature
Section titled “Call Signature”syncSync():
void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:210
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).syncSync
toString()
Section titled “toString()”toString():
string
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:166
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).toString
touch()
Section titled “touch()”Call Signature
Section titled “Call Signature”touch(
path,metadata):Promise<never>
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:20
Parameters
Section titled “Parameters”string
metadata
Section titled “metadata”Readonly<InodeLike>
Returns
Section titled “Returns”Promise<never>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).touch
Call Signature
Section titled “Call Signature”touch(
path,metadata):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:180
Modify metadata.
Parameters
Section titled “Parameters”string
metadata
Section titled “metadata”Partial<InodeLike>
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).touch
touchSync()
Section titled “touchSync()”Call Signature
Section titled “Call Signature”touchSync(
path,metadata):never
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:21
Parameters
Section titled “Parameters”string
metadata
Section titled “metadata”Readonly<InodeLike>
Returns
Section titled “Returns”never
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).touchSync
Call Signature
Section titled “Call Signature”touchSync(
path,metadata):void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:182
Modify metadata.
Parameters
Section titled “Parameters”string
metadata
Section titled “metadata”Partial<InodeLike>
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).touchSync
unlink()
Section titled “unlink()”Call Signature
Section titled “Call Signature”unlink(
path):Promise<never>
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:12
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<never>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).unlink
Call Signature
Section titled “Call Signature”unlink(
path):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:191
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).unlink
unlinkSync()
Section titled “unlinkSync()”Call Signature
Section titled “Call Signature”unlinkSync(
path):never
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:13
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”never
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).unlinkSync
Call Signature
Section titled “Call Signature”unlinkSync(
path):void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:192
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).unlinkSync
usage()
Section titled “usage()”usage():
UsageInfo
Defined in: src/tar/fs.ts:86
Default implementation.
Returns
Section titled “Returns”UsageInfo
Implement
Overrides
Section titled “Overrides”Readonly(Sync(FileSystem)).usage
write()
Section titled “write()”Call Signature
Section titled “Call Signature”write(
path,buffer,offset):Promise<never>
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:24
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array
offset
Section titled “offset”number
Returns
Section titled “Returns”Promise<never>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).write
Call Signature
Section titled “Call Signature”write(
path,buffer,offset):Promise<void>
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:230
Writes a buffer to a file
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array
The buffer to write. You must set the byteOffset and byteLength appropriately!
offset
Section titled “offset”number
The offset in the file to start writing
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).write
writeSync()
Section titled “writeSync()”Call Signature
Section titled “Call Signature”writeSync(
path,buffer,offset):never
Defined in: node_modules/@zenfs/core/dist/mixins/readonly.d.ts:25
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array
offset
Section titled “offset”number
Returns
Section titled “Returns”never
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).writeSync
Call Signature
Section titled “Call Signature”writeSync(
path,buffer,offset):void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:236
Writes a buffer to a file
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array
The buffer to write. You must set the byteOffset and byteLength appropriately!
offset
Section titled “offset”number
The offset in the file to start writing
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Readonly(Sync(FileSystem)).writeSync