Mirrors the synchronous file system into the asynchronous file system.
Private
_asyncPrivate
_initializeOptional
e: ApiErrorPrivate
_isPrivate
_queueQueue of pending asynchronous operations.
Private
_queueProtected
_readyPrivate
_syncStatic
CreateStatic
Readonly
NamePrivate
_initializeCalled once to load up files from async storage into sync storage.
Asynchronous access.
Synchronous access.
Asynchronous chmod
.
Synchronous chmod
.
Asynchronous chown
.
Synchronous chown
.
Private
enqueueTest whether or not the given path exists by checking with the file system. Then call the callback argument with either true or false.
Test whether or not the given path exists by checking with the file system.
Asynchronous link
.
Synchronous link
.
Asynchronous mkdir
.
Mode to make the directory using. Can be ignored if the filesystem doesn't support permissions.
Synchronous mkdir
.
Mode to make the directory using. Can be ignored if the filesystem doesn't support permissions.
Asynchronous readdir
. Reads the contents of a directory.
The callback gets two arguments (err, files)
where files
is an array of
the names of the files in the directory excluding '.'
and '..'
.
Synchronous readdir
. Reads the contents of a directory.
Asynchronous readlink.
Synchronous readlink.
Asynchronous realpath
. The callback gets two arguments
(err, resolvedPath)
.
Note that the Node API will resolve path
to an absolute path.
Synchronous realpath
.
Note that the Node API will resolve path
to an absolute path.
Asynchronous rename. No arguments other than a possible exception are given to the completion callback.
Synchronous rename.
Asynchronous rmdir
.
Synchronous rmdir
.
Asynchronous symlink
.
can be either 'dir'
or 'file'
Synchronous symlink
.
can be either 'dir'
or 'file'
Asynchronous truncate
.
Synchronous truncate
.
Asynchronous unlink
.
Synchronous unlink
.
Change file timestamps of the file referenced by the supplied path.
Change file timestamps of the file referenced by the supplied path.
Static
isGenerated using TypeDoc
AsyncMirrorFS mirrors a synchronous filesystem into an asynchronous filesystem by:
The two stores will be kept in sync. The most common use-case is to pair a synchronous in-memory filesystem with an asynchronous backing store.
Example: Mirroring an IndexedDB file system to an in memory file system. Now, you can use IndexedDB synchronously.
Or, alternatively: