Lines Matching refs:ExponentFileSystem
4 import ExponentFileSystem from './ExponentFileSystem';
28 if (!ExponentFileSystem) {
34 const _unused = new EventEmitter(ExponentFileSystem); // eslint-disable-line
48 export const documentDirectory = normalizeEndingSlash(ExponentFileSystem.documentDirectory);
55 export const cacheDirectory = normalizeEndingSlash(ExponentFileSystem.cacheDirectory);
58 export const { bundledAssets, bundleDirectory } = ExponentFileSystem;
68 if (!ExponentFileSystem.getInfoAsync) {
71 return await ExponentFileSystem.getInfoAsync(fileUri, options);
84 if (!ExponentFileSystem.readAsStringAsync) {
87 return await ExponentFileSystem.readAsStringAsync(fileUri, options);
109 if (!ExponentFileSystem.getContentUriAsync) {
112 return await ExponentFileSystem.getContentUriAsync(fileUri);
130 if (!ExponentFileSystem.writeAsStringAsync) {
133 return await ExponentFileSystem.writeAsStringAsync(fileUri, contents, options);
142 if (!ExponentFileSystem.deleteAsync) {
145 return await ExponentFileSystem.deleteAsync(fileUri, options);
161 if (!ExponentFileSystem.moveAsync) {
164 return await ExponentFileSystem.moveAsync(options);
173 if (!ExponentFileSystem.copyAsync) {
176 return await ExponentFileSystem.copyAsync(options);
188 if (!ExponentFileSystem.makeDirectoryAsync) {
191 return await ExponentFileSystem.makeDirectoryAsync(fileUri, options);
200 if (!ExponentFileSystem.readDirectoryAsync) {
203 return await ExponentFileSystem.readDirectoryAsync(fileUri);
212 if (!ExponentFileSystem.getFreeDiskStorageAsync) {
215 return await ExponentFileSystem.getFreeDiskStorageAsync();
224 if (!ExponentFileSystem.getTotalDiskCapacityAsync) {
227 return await ExponentFileSystem.getTotalDiskCapacityAsync();
256 if (!ExponentFileSystem.downloadAsync) {
260 return await ExponentFileSystem.downloadAsync(uri, fileUri, {
299 if (!ExponentFileSystem.uploadAsync) {
303 return await ExponentFileSystem.uploadAsync(url, fileUri, {
351 private emitter = new EventEmitter(ExponentFileSystem);
356 if (!ExponentFileSystem.networkTaskCancelAsync) {
362 return await ExponentFileSystem.networkTaskCancelAsync(this.uuid);
437 if (!ExponentFileSystem.uploadTaskStartAsync) {
446 const result = await ExponentFileSystem.uploadTaskStartAsync(
486 if (!ExponentFileSystem.downloadResumableStartAsync) {
495 return await ExponentFileSystem.downloadResumableStartAsync(
510 if (!ExponentFileSystem.downloadResumablePauseAsync) {
522 const pauseResult = await ExponentFileSystem.downloadResumablePauseAsync(this.uuid);
537 if (!ExponentFileSystem.downloadResumableStartAsync) {
546 return await ExponentFileSystem.downloadResumableStartAsync(
677 if (!ExponentFileSystem.requestDirectoryPermissionsAsync) {
684 return await ExponentFileSystem.requestDirectoryPermissionsAsync(initialFileUrl);
693 if (!ExponentFileSystem.readSAFDirectoryAsync) {
699 return await ExponentFileSystem.readSAFDirectoryAsync(dirUri);
709 if (!ExponentFileSystem.makeSAFDirectoryAsync) {
715 return await ExponentFileSystem.makeSAFDirectoryAsync(parentUri, dirName);
730 if (!ExponentFileSystem.createSAFFileAsync) {
733 return await ExponentFileSystem.createSAFFileAsync(parentUri, fileName, mimeType);