Class DropboxFS

Hierarchy

  • CloudFS<DBReject>
    • DropboxFS

Constructors

  • Parameters

    • client: Dropbox
    • OptionalcacheTTL: number

    Returns DropboxFS

Properties

_mountPoint?: string

The last place this file system was mounted

_sync?: FileSystem
attributes: ConstMap<FileSystemAttributes, keyof FileSystemAttributes, void>

FileSystemAttributes

cacheTTL: number = 3600
client: Dropbox
convertError: (
    error: DBReject,
    path: string,
    syscall: string,
    message?: string,
) => ErrnoError
id: number

A unique ID for this kind of file system. Currently unused internally, but could be used for partition tables or something

label?: string
name: string

The name for this file system. For example, tmpfs for an in memory one

partialCache: Map<string, CacheEntry> = ...

Methods

  • Parameters

    • path: string
    • stats: Stats

    Returns Promise<void>

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • from: string
    • to: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns Promise<Uint8Array>

  • Parameters

    • path: string

    Returns Promise<Stats>

  • Parameters

    • path: string
    • buffer: Uint8Array
    • stats: Partial<InodeLike>

    Returns Promise<void>

  • Create the file at path with the given options. Then, open it with flag.

    Parameters

    • path: string
    • flag: string
    • mode: number

    Returns Promise<File>

  • Create the file at path with the given options. Then, open it with flag.

    Parameters

    • path: string
    • flag: string
    • mode: number
    • options: CreationOptions

    Returns File

  • Test whether or not path exists.

    Parameters

    • path: string

    Returns Promise<boolean>

  • Test whether or not path exists.

    Parameters

    • path: string

    Returns boolean

  • Parameters

    • path: string
    • syscall: string

    Returns Promise<Uint8Array>

  • Parameters

    • target: string

    Returns Promise<void>

  • Parameters

    • target: string
    • link: string

    Returns void

  • Get metadata about the current file system

    Returns FileSystemMetadata

  • Parameters

    • path: string
    • mode: number

    Returns Promise<void>

  • Parameters

    • path: string
    • mode: number
    • options: CreationOptions

    Returns void

  • Opens the file at path with flag. The file must exist.

    Parameters

    • path: string

      The path to open.

    • flag: string

      The flag to use when opening the file.

    Returns Promise<File>

  • Opens the file at path with flag. The file must exist.

    Parameters

    • path: string

      The path to open.

    • flag: string

      The flag to use when opening the file.

    Returns File

  • Returns Promise<void>

  • Reads into a buffer

    Parameters

    • path: string
    • buffer: Uint8Array

      The buffer to read into. You must set the byteOffset and byteLength appropriately!

    • offset: number

      The offset into the file to start reading from

    • end: number

      The position in the file to stop reading

    Returns Promise<void>

  • Parameters

    • path: string

    Returns Promise<string[]>

  • Parameters

    • path: string

    Returns string[]

  • Reads into a buffer

    Parameters

    • path: string
    • buffer: Uint8Array

      The buffer to read into. You must set the byteOffset and byteLength appropriately!

    • offset: number

      The offset into the file to start reading from

    • end: number

      The position in the file to stop reading

    Returns void

  • Returns Promise<void>

  • Parameters

    • oldPath: string
    • newPath: string

    Returns Promise<void>

  • Parameters

    • oldPath: string
    • newPath: string

    Returns void

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns void

  • Parameters

    • path: string

    Returns Promise<Stats>

  • Parameters

    • path: string

    Returns Stats

  • Parameters

    • path: string
    • data: Uint8Array
    • stats: Partial<InodeLike> = {}

    Returns Promise<void>

  • Parameters

    • path: string
    • Optionaldata: Uint8Array
    • Optionalstats: Readonly<Partial<StatsLike>>

    Returns void

  • Returns string

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns void

  • Experimental

    Default implementation.

    Returns UsageInfo

    Implement

  • Writes a buffer to a file

    Parameters

    • path: string
    • data: Uint8Array
    • offset: number = 0

      The offset in the file to start writing

    Returns Promise<void>

  • Writes a buffer to a file

    Parameters

    • path: string
    • buffer: Uint8Array

      The buffer to write. You must set the byteOffset and byteLength appropriately!

    • offset: number

      The offset in the file to start writing

    Returns void