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

Function createFile

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

Source from the content-addressed store, hash-verified

22}
23
24function createFile(info: { path: string; name: string; extension: string }) {
25 const file = new File();
26 file._path = info.path;
27 file._name = info.name;
28 file._extension = info.extension;
29
30 return file;
31}
32
33function createFolder(info: { path: string; name: string }) {
34 const documents = knownFolders.documents();

Callers 4

fromPathMethod · 0.85
getFileMethod · 0.85
getEntitiesSyncMethod · 0.85
onSuccessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected