MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / contains

Method contains

packages/core/file-system/index.ts:716–725  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

714 }
715
716 public contains(name: string): boolean {
717 const fileAccess = getFileAccess();
718 const path = fileAccess.joinPath(this.path, name);
719
720 if (fileAccess.fileExists(path)) {
721 return true;
722 }
723
724 return fileAccess.folderExists(path);
725 }
726
727 public clear(): Promise<any> {
728 return new Promise((resolve, reject) => {

Callers 5

hasKeyFunction · 0.80
readResponseStreamMethod · 0.80
validateKeyMethod · 0.80
testContainsFileFunction · 0.80

Calls 4

getFileAccessFunction · 0.85
joinPathMethod · 0.65
fileExistsMethod · 0.65
folderExistsMethod · 0.65

Tested by

no test coverage detected