MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / isDirSafe

Function isDirSafe

src/util.ts:684–686  ·  view source on GitHub ↗
(path: fs.PathLike)

Source from the content-addressed store, hash-verified

682}
683
684export function isDirSafe(path: fs.PathLike): boolean {
685 return !!statSyncSafe(path)?.isDirectory();
686}
687
688export function isFileSafe(path: fs.PathLike): boolean {
689 return !!statSyncSafe(path)?.isFile();

Callers 2

watchFilesMethod · 0.90
manDirListenerMethod · 0.90

Calls 1

statSyncSafeFunction · 0.85

Tested by

no test coverage detected