MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / createFolder

Function createFolder

packages/core/file-system/index.ts:33–50  ·  view source on GitHub ↗
(info: { path: string; name: string })

Source from the content-addressed store, hash-verified

31}
32
33function createFolder(info: { path: string; name: string }) {
34 const documents = knownFolders.documents();
35 if (info.path === documents.path) {
36 return documents;
37 }
38
39 const temp = knownFolders.temp();
40 if (info.path === temp.path) {
41 return temp;
42 }
43
44 const folder = new Folder();
45
46 folder._path = info.path;
47 folder._name = info.name;
48
49 return folder;
50}
51
52export class FileSystemEntity {
53 _path: string;

Callers 6

parentMethod · 0.85
fromPathMethod · 0.85
getFolderMethod · 0.85
getEntitiesSyncMethod · 0.85
onSuccessMethod · 0.85
getExistingFolderInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected