expo-file-system 56.0.4 → 56.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/android/build.gradle +2 -2
- package/build/Directory.d.ts +67 -0
- package/build/Directory.d.ts.map +1 -0
- package/build/Directory.types.d.ts +49 -0
- package/build/Directory.types.d.ts.map +1 -0
- package/build/ExpoFileSystem.d.ts +9 -54
- package/build/ExpoFileSystem.d.ts.map +1 -1
- package/build/ExpoFileSystem.types.d.ts +5 -1033
- package/build/ExpoFileSystem.types.d.ts.map +1 -1
- package/build/ExpoFileSystem.web.d.ts +8 -0
- package/build/ExpoFileSystem.web.d.ts.map +1 -1
- package/build/File.d.ts +192 -0
- package/build/File.d.ts.map +1 -0
- package/build/File.types.d.ts +226 -0
- package/build/File.types.d.ts.map +1 -0
- package/build/FileSystem.d.ts +7 -385
- package/build/FileSystem.d.ts.map +1 -1
- package/build/FileSystem.types.d.ts +6 -0
- package/build/FileSystem.types.d.ts.map +1 -0
- package/build/FileSystemWatcher.types.d.ts +68 -0
- package/build/FileSystemWatcher.types.d.ts.map +1 -0
- package/build/NetworkTasks.d.ts +189 -0
- package/build/NetworkTasks.d.ts.map +1 -0
- package/build/NetworkTasks.types.d.ts +216 -0
- package/build/NetworkTasks.types.d.ts.map +1 -0
- package/build/Paths.d.ts +31 -0
- package/build/Paths.d.ts.map +1 -0
- package/build/Paths.types.d.ts +11 -0
- package/build/Paths.types.d.ts.map +1 -0
- package/build/index.d.ts +5 -2
- package/build/index.d.ts.map +1 -1
- package/build/{FileSystemWatcher.d.ts → internal/FileSystemWatcher.d.ts} +3 -2
- package/build/internal/FileSystemWatcher.d.ts.map +1 -0
- package/build/{FileSystemWatcher.web.d.ts → internal/FileSystemWatcher.web.d.ts} +3 -2
- package/build/internal/FileSystemWatcher.web.d.ts.map +1 -0
- package/build/internal/NativeFileSystem.types.d.ts +310 -0
- package/build/internal/NativeFileSystem.types.d.ts.map +1 -0
- package/build/{streams.d.ts → internal/streams.d.ts} +1 -1
- package/build/internal/streams.d.ts.map +1 -0
- package/expo-module.config.json +1 -1
- package/ios/FileSystemDownloadTask.swift +1 -1
- package/ios/FileSystemUploadTask.swift +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.aar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.aar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.aar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.aar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{56.0.4/expo.modules.filesystem-56.0.4.module → 56.0.5/expo.modules.filesystem-56.0.5.module} +17 -17
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{56.0.4/expo.modules.filesystem-56.0.4.pom → 56.0.5/expo.modules.filesystem-56.0.5.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.5/expo.modules.filesystem-56.0.5.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/maven-metadata.xml.sha512 +1 -1
- package/mocks/FileSystem.ts +12 -6
- package/package.json +4 -4
- package/plugin/tsconfig.tsbuildinfo +1 -1
- package/prebuilds/output/debug/xcframeworks/ExpoFileSystem.tar.gz +0 -0
- package/prebuilds/output/release/xcframeworks/ExpoFileSystem.tar.gz +0 -0
- package/src/Directory.ts +111 -0
- package/src/Directory.types.ts +49 -0
- package/src/ExpoFileSystem.ts +14 -77
- package/src/ExpoFileSystem.types.ts +5 -1168
- package/src/ExpoFileSystem.web.ts +14 -0
- package/src/File.ts +382 -0
- package/src/File.types.ts +265 -0
- package/src/FileSystem.ts +6 -915
- package/src/FileSystem.types.ts +5 -0
- package/src/FileSystemWatcher.types.ts +72 -0
- package/src/NetworkTasks.ts +475 -0
- package/src/NetworkTasks.types.ts +225 -0
- package/src/Paths.ts +58 -0
- package/src/Paths.types.ts +10 -0
- package/src/index.ts +5 -2
- package/src/{FileSystemWatcher.ts → internal/FileSystemWatcher.ts} +18 -23
- package/src/{FileSystemWatcher.web.ts → internal/FileSystemWatcher.web.ts} +4 -5
- package/src/internal/NativeFileSystem.types.ts +400 -0
- package/src/{streams.ts → internal/streams.ts} +1 -1
- package/build/FileSystemWatcher.d.ts.map +0 -1
- package/build/FileSystemWatcher.web.d.ts.map +0 -1
- package/build/streams.d.ts.map +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.aar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.aar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.aar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.aar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/56.0.4/expo.modules.filesystem-56.0.4.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{56.0.4/expo.modules.filesystem-56.0.4-sources.jar → 56.0.5/expo.modules.filesystem-56.0.5-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{56.0.4/expo.modules.filesystem-56.0.4-sources.jar.md5 → 56.0.5/expo.modules.filesystem-56.0.5-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{56.0.4/expo.modules.filesystem-56.0.4-sources.jar.sha1 → 56.0.5/expo.modules.filesystem-56.0.5-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{56.0.4/expo.modules.filesystem-56.0.4-sources.jar.sha256 → 56.0.5/expo.modules.filesystem-56.0.5-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.filesystem/{56.0.4/expo.modules.filesystem-56.0.4-sources.jar.sha512 → 56.0.5/expo.modules.filesystem-56.0.5-sources.jar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,11 +10,18 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 56.0.5 — 2026-05-15
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Migrated to the single-payload `SharedObject.emit` API. ([#45596](https://github.com/expo/expo/pull/45596) by [@tsapeta](https://github.com/tsapeta))
|
|
18
|
+
|
|
13
19
|
## 56.0.4 — 2026-05-08
|
|
14
20
|
|
|
15
21
|
### 💡 Others
|
|
16
22
|
|
|
17
23
|
- Improved public API docs. ([#45530](https://github.com/expo/expo/pull/45530) by [@barthap](https://github.com/barthap))
|
|
24
|
+
- Re-organized package TypeScript code. ([#45531](https://github.com/expo/expo/pull/45531) by [@barthap](https://github.com/barthap))
|
|
18
25
|
|
|
19
26
|
## 56.0.3 — 2026-05-06
|
|
20
27
|
|
package/android/build.gradle
CHANGED
|
@@ -4,13 +4,13 @@ plugins {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
group = 'host.exp.exponent'
|
|
7
|
-
version = '56.0.
|
|
7
|
+
version = '56.0.5'
|
|
8
8
|
|
|
9
9
|
android {
|
|
10
10
|
namespace "expo.modules.filesystem"
|
|
11
11
|
defaultConfig {
|
|
12
12
|
versionCode 30
|
|
13
|
-
versionName "56.0.
|
|
13
|
+
versionName "56.0.5"
|
|
14
14
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
15
15
|
}
|
|
16
16
|
testOptions {
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import ExpoFileSystem from './ExpoFileSystem';
|
|
2
|
+
import { File } from './File';
|
|
3
|
+
import type { WatchEvent, WatchOptions, WatchSubscription } from './FileSystemWatcher.types';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a directory on the filesystem.
|
|
6
|
+
*
|
|
7
|
+
* A `Directory` instance can be created for any path, and does not need to exist on the filesystem during creation.
|
|
8
|
+
*
|
|
9
|
+
* The constructor accepts an array of strings that are joined to create the directory URI. The first argument can also be a `Directory` instance (like `Paths.cache`).
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const directory = new Directory(Paths.cache, "subdirName");
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare class Directory extends ExpoFileSystem.FileSystemDirectory {
|
|
16
|
+
static pickDirectoryAsync: (initialUri?: string) => Promise<Directory>;
|
|
17
|
+
/**
|
|
18
|
+
* Creates an instance of a directory. It can be created for any path, and does not need to exist on the filesystem during creation.
|
|
19
|
+
*
|
|
20
|
+
* The constructor accepts an array of strings that are joined to create the directory URI. The first argument can also be a `Directory` instance (like `Paths.cache`).
|
|
21
|
+
* @param uris An array of: `file:///` string URIs, `File` instances, and `Directory` instances representing an arbitrary location on the file system.
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const directory = new Directory(Paths.cache, "subdirName");
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
constructor(...uris: (string | File | Directory)[]);
|
|
28
|
+
get parentDirectory(): Directory;
|
|
29
|
+
/**
|
|
30
|
+
* Lists the contents of a directory.
|
|
31
|
+
* Calling this method if the parent directory does not exist will throw an error.
|
|
32
|
+
* @returns An array of `Directory` and `File` instances.
|
|
33
|
+
*/
|
|
34
|
+
list(): (Directory | File)[];
|
|
35
|
+
/**
|
|
36
|
+
* Directory name.
|
|
37
|
+
*/
|
|
38
|
+
get name(): string;
|
|
39
|
+
createFile(name: string, mimeType: string | null): File;
|
|
40
|
+
createDirectory(name: string): Directory;
|
|
41
|
+
/**
|
|
42
|
+
* Watches this directory for changes to its contents or the directory itself.
|
|
43
|
+
*
|
|
44
|
+
* Events are emitted when files or subdirectories are created, modified, deleted, or renamed
|
|
45
|
+
* within this directory. On iOS, child changes are surfaced as a coarse-grained `modified` event
|
|
46
|
+
* on the directory itself, so filtering for child-level `created`, `deleted`, or `renamed` events
|
|
47
|
+
* is not reliable. The watcher automatically stops when the directory is deleted or renamed.
|
|
48
|
+
* To stop watching manually, call `remove()` on the returned subscription.
|
|
49
|
+
*
|
|
50
|
+
* @param callback Invoked when a change is detected. Receives a `WatchEvent` describing what changed.
|
|
51
|
+
* @param options Configuration for debouncing and filtering events.
|
|
52
|
+
* @return A subscription handle. Call `remove()` to stop watching.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const cacheDir = new Directory(Paths.cache);
|
|
57
|
+
* const subscription = cacheDir.watch((event) => {
|
|
58
|
+
* console.log(`${event.type}: ${event.target.uri}`);
|
|
59
|
+
* });
|
|
60
|
+
*
|
|
61
|
+
* // Later, stop watching:
|
|
62
|
+
* subscription.remove();
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
watch(callback: (event: WatchEvent<File | Directory>) => void, options?: WatchOptions): WatchSubscription;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=Directory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Directory.d.ts","sourceRoot":"","sources":["../src/Directory.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAI7F;;;;;;;;;;GAUG;AACH,qBAAa,SAAU,SAAQ,cAAc,CAAC,mBAAmB;IAC/D,MAAM,CAAC,kBAAkB,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;IAEvE;;;;;;;;;OASG;gBACS,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE;IAQlD,IAAI,eAAe,cAElB;IAED;;;;OAIG;IACM,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE;IAOrC;;OAEG;IACH,IAAI,IAAI,WAEP;IAED,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAKvD,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS;IAIxC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,KAAK,CACH,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC,KAAK,IAAI,EACvD,OAAO,CAAC,EAAE,YAAY,GACrB,iBAAiB;CAQrB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type DirectoryCreateOptions = {
|
|
2
|
+
/**
|
|
3
|
+
* Whether to create intermediate directories if they do not exist.
|
|
4
|
+
* @default false
|
|
5
|
+
*/
|
|
6
|
+
intermediates?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to overwrite the directory if it exists.
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
overwrite?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* This flag controls whether the `create` operation is idempotent
|
|
14
|
+
* (safe to call multiple times without error).
|
|
15
|
+
*
|
|
16
|
+
* If `true`, creating a file or directory that already exists will succeed silently.
|
|
17
|
+
* If `false`, an error will be thrown when the target already exists.
|
|
18
|
+
*
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
idempotent?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type DirectoryInfo = {
|
|
24
|
+
/**
|
|
25
|
+
* Indicates whether the directory exists.
|
|
26
|
+
*/
|
|
27
|
+
exists: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* A `file://` URI pointing to the directory.
|
|
30
|
+
*/
|
|
31
|
+
uri?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The size of the file in bytes.
|
|
34
|
+
*/
|
|
35
|
+
size?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The last modification time of the directory expressed in milliseconds since epoch.
|
|
38
|
+
*/
|
|
39
|
+
modificationTime?: number;
|
|
40
|
+
/**
|
|
41
|
+
* A creation time of the directory expressed in milliseconds since epoch. Returns null if the Android version is earlier than API 26.
|
|
42
|
+
*/
|
|
43
|
+
creationTime?: number;
|
|
44
|
+
/**
|
|
45
|
+
* A list of file names contained within a directory.
|
|
46
|
+
*/
|
|
47
|
+
files?: string[];
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=Directory.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Directory.types.d.ts","sourceRoot":"","sources":["../src/Directory.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC"}
|
|
@@ -1,64 +1,19 @@
|
|
|
1
|
-
import { NativeModule
|
|
2
|
-
import type { Directory
|
|
1
|
+
import { NativeModule } from 'expo-modules-core';
|
|
2
|
+
import type { Directory } from './Directory';
|
|
3
|
+
import type { File } from './File';
|
|
4
|
+
import type { PickMultipleFilesOptions, PickSingleFileOptions } from './File.types';
|
|
5
|
+
import type { DownloadOptions, DownloadProgress } from './NetworkTasks.types';
|
|
6
|
+
import type { PathInfo } from './Paths.types';
|
|
7
|
+
import type { FileSystemDownloadTask, FileSystemUploadTask, NativeFileSystemDirectory, NativeFileSystemFile, NativeFileSystemWatcher } from './internal/NativeFileSystem.types';
|
|
3
8
|
type FileSystemEvents = {
|
|
4
9
|
downloadProgress: (data: {
|
|
5
10
|
uuid: string;
|
|
6
11
|
data: DownloadProgress;
|
|
7
12
|
}) => void;
|
|
8
13
|
};
|
|
9
|
-
type UploadTaskEvents = {
|
|
10
|
-
progress: (data: UploadProgress) => void;
|
|
11
|
-
};
|
|
12
|
-
type DownloadTaskEvents = {
|
|
13
|
-
progress: (data: DownloadProgress) => void;
|
|
14
|
-
};
|
|
15
|
-
declare class FileSystemUploadTask extends SharedObject<UploadTaskEvents> {
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
start(url: string, file: File, options: Record<string, any>): Promise<UploadResult>;
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
cancel(): void;
|
|
24
|
-
}
|
|
25
|
-
declare class FileSystemDownloadTask extends SharedObject<DownloadTaskEvents> {
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
start(url: string, to: File | Directory, options?: Record<string, any>): Promise<string | null>;
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
pause(): any;
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
resume(url: string, to: File | Directory, resumeData: string, options?: Record<string, any>): Promise<string | null>;
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
cancel(): void;
|
|
42
|
-
}
|
|
43
|
-
type FileSystemWatcherEvent = {
|
|
44
|
-
type: WatchEventType;
|
|
45
|
-
path: string;
|
|
46
|
-
isDirectory: boolean;
|
|
47
|
-
nativeEventFlags?: number;
|
|
48
|
-
newPath?: string;
|
|
49
|
-
newPathIsDirectory?: boolean;
|
|
50
|
-
};
|
|
51
|
-
type FileSystemWatcherEvents = {
|
|
52
|
-
change: (event: FileSystemWatcherEvent) => void;
|
|
53
|
-
};
|
|
54
|
-
declare class NativeFileSystemWatcher extends SharedObject<FileSystemWatcherEvents> {
|
|
55
|
-
constructor(path: string, options?: WatchOptions);
|
|
56
|
-
start(): void;
|
|
57
|
-
stop(): void;
|
|
58
|
-
}
|
|
59
14
|
declare class ExpoFileSystemModule extends NativeModule<FileSystemEvents> {
|
|
60
|
-
FileSystemDirectory: typeof
|
|
61
|
-
FileSystemFile: typeof
|
|
15
|
+
FileSystemDirectory: typeof NativeFileSystemDirectory;
|
|
16
|
+
FileSystemFile: typeof NativeFileSystemFile;
|
|
62
17
|
FileSystemUploadTask: typeof FileSystemUploadTask;
|
|
63
18
|
FileSystemDownloadTask: typeof FileSystemDownloadTask;
|
|
64
19
|
FileSystemWatcher: typeof NativeFileSystemWatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoFileSystem.d.ts","sourceRoot":"","sources":["../src/ExpoFileSystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,
|
|
1
|
+
{"version":3,"file":"ExpoFileSystem.d.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