Skip to content

Function: mapFileSystemError()

mapFileSystemError(err, filePath, codeOf?): FileSystemError

Map an unknown backend failure into a FileSystemError.

Prefer a backend-specific codeOf classifier (errno, SDK code). When it returns undefined, falls back to inferFileSystemErrorCode. Message and cause always go through @dbx-tools/shared-core error helpers.

unknown

string

(err) => FileSystemErrorCode | undefined

FileSystemError