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

Function getFileAccess

packages/core/file-system/index.ts:12–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 * @returns FileSystemAccess
11 */
12export function getFileAccess(): IFileSystemAccess {
13 if (!fileAccess) {
14 if (__ANDROID__ && SDK_VERSION >= 29) {
15 fileAccess = new FileSystemAccess29();
16 } else {
17 fileAccess = new FileSystemAccess();
18 }
19 }
20
21 return fileAccess;
22}
23
24function createFile(info: { path: string; name: string; extension: string }) {
25 const file = new File();

Callers 15

readFileFunction · 0.90
getFileNameFromContentFunction · 0.90
parentMethod · 0.85
removeSyncMethod · 0.85
renameSyncMethod · 0.85
lastModifiedMethod · 0.85
fromPathMethod · 0.85
existsMethod · 0.85
sizeMethod · 0.85
appendMethod · 0.85
appendSyncMethod · 0.85
appendTextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected