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

Function isFileSafe

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

Source from the content-addressed store, hash-verified

686}
687
688export function isFileSafe(path: fs.PathLike): boolean {
689 return !!statSyncSafe(path)?.isFile();
690}
691
692// Keeps only the unique entries in an array, optionally with a custom comparison function
693export function uniqueEntries<T>(array: T[], isIdentical: (x: T, y: T) => boolean = (x, y) => (x === y)){

Callers 4

initializeHelpFunction · 0.90
pimpMyHelpFunction · 0.90
watchFilesMethod · 0.90
getHelpForTopicMethod · 0.90

Calls 1

statSyncSafeFunction · 0.85

Tested by

no test coverage detected