Companion

Functions

Link copied to clipboard
fun FileExists(messageOrUri: JsAny = definedExternally): FileSystemError

Create an error to signal that a file or folder already exists, e.g. when creating but not overwriting a file.

Link copied to clipboard
fun FileIsADirectory(messageOrUri: JsAny = definedExternally): FileSystemError

Create an error to signal that a file is a folder.

Link copied to clipboard
fun FileNotADirectory(messageOrUri: JsAny = definedExternally): FileSystemError

Create an error to signal that a file is not a folder.

Link copied to clipboard
fun FileNotFound(messageOrUri: JsAny = definedExternally): FileSystemError

Create an error to signal that a file or folder wasn't found.

Link copied to clipboard
fun NoPermissions(messageOrUri: JsAny = definedExternally): FileSystemError

Create an error to signal that an operation lacks required permissions.

Link copied to clipboard
fun Unavailable(messageOrUri: JsAny = definedExternally): FileSystemError

Create an error to signal that the file system is unavailable or too busy to complete a request.