()
| 10 | * @returns FileSystemAccess |
| 11 | */ |
| 12 | export 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 | |
| 24 | function createFile(info: { path: string; name: string; extension: string }) { |
| 25 | const file = new File(); |
no outgoing calls
no test coverage detected