MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / isDropboxPathNotFound

Function isDropboxPathNotFound

packages/filesystem/dropbox/dropbox.ts:7–10  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

5import { DropboxFileReader, DropboxFileWriter } from "./rw";
6
7function isDropboxPathNotFound(error: unknown): boolean {
8 const message = error instanceof Error ? error.message : String(error);
9 return message.includes("path_lookup/not_found") || message.includes("path/not_found");
10}
11
12export default class DropboxFileSystem implements FileSystem {
13 accessToken?: string;

Callers 2

deleteMethod · 0.85
existsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected