DropboxFS
Defined in: src/dropbox.ts:105
Extends
Section titled “Extends”CloudFS<DBReject>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DropboxFS(
client,cacheTTL?):DropboxFS
Defined in: src/dropbox.ts:106
Parameters
Section titled “Parameters”client
Section titled “client”Dropbox
cacheTTL?
Section titled “cacheTTL?”number
Returns
Section titled “Returns”DropboxFS
Overrides
Section titled “Overrides”CloudFS<DBReject>.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”CloudFS._mountPoint
_sync?
Section titled “_sync?”
protectedoptional_sync?:FileSystem
Defined in: node_modules/@zenfs/core/dist/mixins/async.d.ts:18
Internal
Inherited from
Section titled “Inherited from”CloudFS._sync
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”CloudFS._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”cacheTTL
Section titled “cacheTTL”
readonlycacheTTL:number=3600
Defined in: src/cloudfs.ts:29
Inherited from
Section titled “Inherited from”client
Section titled “client”
readonlyclient:Dropbox
Defined in: src/dropbox.ts:107
convertError
Section titled “convertError”
protectedconvertError: (error,message?) =>Exception
Defined in: src/cloudfs.ts:30
Parameters
Section titled “Parameters”DBReject
message?
Section titled “message?”string
Returns
Section titled “Returns”Exception
Inherited from
Section titled “Inherited from”CloudFS.convertError
label?
Section titled “label?”
optionallabel?:string
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:138
Inherited from
Section titled “Inherited from”CloudFS.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”CloudFS.name
partialCache
Section titled “partialCache”
protectedpartialCache:Map<string,CacheEntry>
Defined in: src/cloudfs.ts:116
Inherited from
Section titled “Inherited from”
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”CloudFS.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”CloudFS.uuid
Methods
Section titled “Methods”_create()
Section titled “_create()”
protected_create(path,inode):Promise<void>
Defined in: src/dropbox.ts:137
Parameters
Section titled “Parameters”string
Inode
Returns
Section titled “Returns”Promise<void>
Overrides
Section titled “Overrides”CloudFS._create
_delete()
Section titled “_delete()”
protected_delete(path):Promise<void>
Defined in: src/dropbox.ts:148
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
Overrides
Section titled “Overrides”CloudFS._delete
_move()
Section titled “_move()”_move(
from,to):Promise<void>
Defined in: src/dropbox.ts:113
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”Promise<void>
Overrides
Section titled “Overrides”CloudFS._move
_read()
Section titled “_read()”
protected_read(path):Promise<Uint8Array<ArrayBufferLike>>
Defined in: src/dropbox.ts:178
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Overrides
Section titled “Overrides”CloudFS._read
_stat()
Section titled “_stat()”_stat(
path):Promise<Inode>
Defined in: src/dropbox.ts:117
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<Inode>
Overrides
Section titled “Overrides”CloudFS._stat
_touch()?
Section titled “_touch()?”
protectedoptional_touch(path,inode):Promise<void>
Defined in: src/cloudfs.ts:89
Parameters
Section titled “Parameters”string
Partial<InodeLike>
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”CloudFS._touch
_write()
Section titled “_write()”
protected_write(path,buffer):Promise<void>
Defined in: src/dropbox.ts:185
Parameters
Section titled “Parameters”string
buffer
Section titled “buffer”Uint8Array<ArrayBuffer>
Returns
Section titled “Returns”Promise<void>
Overrides
Section titled “Overrides”CloudFS._write
createFile()
Section titled “createFile()”createFile(
path,options):Promise<Inode>
Defined in: src/cloudfs.ts:58
Create the file at path with the given options.
Parameters
Section titled “Parameters”string
options
Section titled “options”CreationOptions
Returns
Section titled “Returns”Promise<Inode>
Inherited from
Section titled “Inherited from”CloudFS.createFile
createFileSync()
Section titled “createFileSync()”
abstractcreateFileSync(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”CloudFS.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”CloudFS.exists
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”CloudFS.existsSync
getValidContents()
Section titled “getValidContents()”
protectedgetValidContents(path,syscall):Promise<Uint8Array<ArrayBufferLike>>
Defined in: src/cloudfs.ts:118
Parameters
Section titled “Parameters”string
syscall
Section titled “syscall”string
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Inherited from
Section titled “Inherited from”CloudFS.getValidContents
link()
Section titled “link()”link():
Promise<void>
Defined in: src/cloudfs.ts:97
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”CloudFS.link
linkSync()
Section titled “linkSync()”
abstractlinkSync(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”CloudFS.linkSync
mkdir()
Section titled “mkdir()”mkdir(
path,options):Promise<Inode>
Defined in: src/cloudfs.ts:79
Parameters
Section titled “Parameters”string
options
Section titled “options”CreationOptions
Returns
Section titled “Returns”Promise<Inode>
Inherited from
Section titled “Inherited from”CloudFS.mkdir
mkdirSync()
Section titled “mkdirSync()”
abstractmkdirSync(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”CloudFS.mkdirSync
queueDone()
Section titled “queueDone()”queueDone():
Promise<void>
Defined in: node_modules/@zenfs/core/dist/mixins/async.d.ts:22
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”CloudFS.queueDone
read()
Section titled “read()”read(
path,buffer,offset,end):Promise<void>
Defined in: src/cloudfs.ts:103
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”Promise<void>
Inherited from
Section titled “Inherited from”CloudFS.read
readdir()
Section titled “readdir()”readdir(
path):Promise<string[]>
Defined in: src/dropbox.ts:152
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<string[]>
Overrides
Section titled “Overrides”CloudFS.readdir
readdirSync()
Section titled “readdirSync()”
abstractreaddirSync(path):string[]
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:198
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
Inherited from
Section titled “Inherited from”CloudFS.readdirSync
readSync()
Section titled “readSync()”
abstractreadSync(path,buffer,start,end):void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:224
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”void
Inherited from
Section titled “Inherited from”CloudFS.readSync
ready()
Section titled “ready()”ready():
Promise<void>
Defined in: node_modules/@zenfs/core/dist/mixins/async.d.ts:23
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”CloudFS.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”CloudFS.readySync
rename()
Section titled “rename()”rename(
oldPath,newPath):Promise<void>
Defined in: src/cloudfs.ts:43
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”CloudFS.rename
renameSync()
Section titled “renameSync()”
abstractrenameSync(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”CloudFS.renameSync
rmdir()
Section titled “rmdir()”rmdir(
path):Promise<void>
Defined in: src/cloudfs.ts:73
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”CloudFS.rmdir
rmdirSync()
Section titled “rmdirSync()”
abstractrmdirSync(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”CloudFS.rmdirSync
stat()
Section titled “stat()”stat(
path):Promise<InodeLike<number>>
Defined in: src/cloudfs.ts:50
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<InodeLike<number>>
Inherited from
Section titled “Inherited from”CloudFS.stat
statSync()
Section titled “statSync()”
abstractstatSync(path):InodeLike
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:178
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”InodeLike
Inherited from
Section titled “Inherited from”CloudFS.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”CloudFS.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”CloudFS.streamWrite
sync()
Section titled “sync()”sync():
Promise<void>
Defined in: src/cloudfs.ts:95
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”CloudFS.sync
syncSync()
Section titled “syncSync()”
abstractsyncSync():void
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:210
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”CloudFS.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”CloudFS.toString
touch()
Section titled “touch()”touch(
path,metadata?):Promise<void>
Defined in: src/cloudfs.ts:91
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”CloudFS.touch
touchSync()
Section titled “touchSync()”
abstracttouchSync(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”CloudFS.touchSync
unlink()
Section titled “unlink()”unlink(
path):Promise<void>
Defined in: src/cloudfs.ts:67
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”CloudFS.unlink
unlinkSync()
Section titled “unlinkSync()”
abstractunlinkSync(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”CloudFS.unlinkSync
usage()
Section titled “usage()”usage():
UsageInfo
Defined in: node_modules/@zenfs/core/dist/internal/filesystem.d.ts:172
Default implementation.
Returns
Section titled “Returns”UsageInfo
Implement
Inherited from
Section titled “Inherited from”CloudFS.usage
write()
Section titled “write()”write(
path,data,offset?):Promise<void>
Defined in: src/cloudfs.ts:110
Writes a buffer to a file
Parameters
Section titled “Parameters”string
Uint8Array
offset?
Section titled “offset?”number = 0
The offset in the file to start writing
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”CloudFS.write
writeSync()
Section titled “writeSync()”
abstractwriteSync(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”CloudFS.writeSync