Lines Matching refs:ExponentFileSystem

3 import ExponentFileSystem from './ExponentFileSystem';
5 if (!ExponentFileSystem) {
9 const _unused = new EventEmitter(ExponentFileSystem); // eslint-disable-line
21 export const documentDirectory = normalizeEndingSlash(ExponentFileSystem.documentDirectory);
27 export const cacheDirectory = normalizeEndingSlash(ExponentFileSystem.cacheDirectory);
29 export const { bundledAssets, bundleDirectory } = ExponentFileSystem;
38 if (!ExponentFileSystem.getInfoAsync) {
41 return await ExponentFileSystem.getInfoAsync(fileUri, options);
50 if (!ExponentFileSystem.readAsStringAsync) {
53 return await ExponentFileSystem.readAsStringAsync(fileUri, options);
74 if (!ExponentFileSystem.getContentUriAsync) {
77 return await ExponentFileSystem.getContentUriAsync(fileUri);
91 if (!ExponentFileSystem.writeAsStringAsync) {
94 return await ExponentFileSystem.writeAsStringAsync(fileUri, contents, options);
102 if (!ExponentFileSystem.deleteAsync) {
105 return await ExponentFileSystem.deleteAsync(fileUri, options);
119 if (!ExponentFileSystem.moveAsync) {
122 return await ExponentFileSystem.moveAsync(options);
130 if (!ExponentFileSystem.copyAsync) {
133 return await ExponentFileSystem.copyAsync(options);
141 if (!ExponentFileSystem.makeDirectoryAsync) {
144 return await ExponentFileSystem.makeDirectoryAsync(fileUri, options);
152 if (!ExponentFileSystem.readDirectoryAsync) {
155 return await ExponentFileSystem.readDirectoryAsync(fileUri);
163 if (!ExponentFileSystem.getFreeDiskStorageAsync) {
166 return await ExponentFileSystem.getFreeDiskStorageAsync();
174 if (!ExponentFileSystem.getTotalDiskCapacityAsync) {
177 return await ExponentFileSystem.getTotalDiskCapacityAsync();
201 if (!ExponentFileSystem.downloadAsync) {
204 return await ExponentFileSystem.downloadAsync(uri, fileUri, {
238 if (!ExponentFileSystem.uploadAsync) {
241 return await ExponentFileSystem.uploadAsync(url, fileUri, {
273 emitter = new EventEmitter(ExponentFileSystem);
277 if (!ExponentFileSystem.networkTaskCancelAsync) {
282 return await ExponentFileSystem.networkTaskCancelAsync(this.uuid);
342 if (!ExponentFileSystem.uploadTaskStartAsync) {
349 …const result = await ExponentFileSystem.uploadTaskStartAsync(this.url, this.fileUri, this.uuid, th…
382 if (!ExponentFileSystem.downloadResumableStartAsync) {
389 …return await ExponentFileSystem.downloadResumableStartAsync(this.url, this._fileUri, this.uuid, th…
397 if (!ExponentFileSystem.downloadResumablePauseAsync) {
407 const pauseResult = await ExponentFileSystem.downloadResumablePauseAsync(this.uuid);
422 if (!ExponentFileSystem.downloadResumableStartAsync) {
429 …return await ExponentFileSystem.downloadResumableStartAsync(this.url, this.fileUri, this.uuid, thi…
550 if (!ExponentFileSystem.requestDirectoryPermissionsAsync) {
553 return await ExponentFileSystem.requestDirectoryPermissionsAsync(initialFileUrl);
562 if (!ExponentFileSystem.readSAFDirectoryAsync) {
565 return await ExponentFileSystem.readSAFDirectoryAsync(dirUri);
575 if (!ExponentFileSystem.makeSAFDirectoryAsync) {
578 return await ExponentFileSystem.makeSAFDirectoryAsync(parentUri, dirName);
589 if (!ExponentFileSystem.createSAFFileAsync) {
592 return await ExponentFileSystem.createSAFFileAsync(parentUri, fileName, mimeType);