@capacitor/filesystem 7.0.2-nightly-20250526T150552.0 → 7.0.2-nightly-20250527T150614.0
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/README.md +58 -0
- package/dist/docs.json +96 -0
- package/dist/esm/definitions.d.ts +13 -0
- package/dist/esm/definitions.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -42,6 +42,64 @@ For detailed steps on how to do this, please see the [Capacitor Docs](https://ca
|
|
|
42
42
|
</plist>
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
+
## Migrating from downloadFile to File Transfer plugin
|
|
46
|
+
|
|
47
|
+
As of version 7.1.0, the `downloadFile` functionality in the Filesystem plugin has been deprecated in favor of the new [@capacitor/file-transfer](https://capacitorjs.com/docs/apis/file-transfer) plugin.
|
|
48
|
+
|
|
49
|
+
### Installing the File Transfer plugin
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npm install @capacitor/file-transfer
|
|
53
|
+
npx cap sync
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Migration example
|
|
57
|
+
|
|
58
|
+
Before (using Filesystem plugin):
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import { Filesystem, Directory } from '@capacitor/filesystem';
|
|
62
|
+
|
|
63
|
+
await Filesystem.downloadFile({
|
|
64
|
+
url: 'https://example.com/file.pdf',
|
|
65
|
+
path: 'downloaded-file.pdf',
|
|
66
|
+
directory: Directory.Documents,
|
|
67
|
+
progress: true
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// Progress events
|
|
71
|
+
Filesystem.addListener('progress', (progress) => {
|
|
72
|
+
console.log(`Downloaded ${progress.bytes} of ${progress.contentLength}`);
|
|
73
|
+
});
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
After (using File Transfer plugin):
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import { FileTransfer } from '@capacitor/file-transfer';
|
|
80
|
+
import { Filesystem, Directory } from '@capacitor/filesystem';
|
|
81
|
+
|
|
82
|
+
// First get the full file path using Filesystem
|
|
83
|
+
const fileInfo = await Filesystem.getUri({
|
|
84
|
+
directory: Directory.Documents,
|
|
85
|
+
path: 'downloaded-file.pdf'
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
// Then use the FileTransfer plugin to download
|
|
89
|
+
await FileTransfer.downloadFile({
|
|
90
|
+
url: 'https://example.com/file.pdf',
|
|
91
|
+
path: fileInfo.uri,
|
|
92
|
+
progress: true
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
// Progress events
|
|
96
|
+
FileTransfer.addListener('progress', (progress) => {
|
|
97
|
+
console.log(`Downloaded ${progress.bytes} of ${progress.contentLength}`);
|
|
98
|
+
});
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
The File Transfer plugin offers improved reliability, better error handling with specific error codes, and also adds upload functionality.
|
|
102
|
+
|
|
45
103
|
## iOS
|
|
46
104
|
|
|
47
105
|
To have files appear in the Files app, you must also set the following keys to `YES` in `Info.plist`:
|
package/dist/docs.json
CHANGED
|
@@ -310,6 +310,14 @@
|
|
|
310
310
|
],
|
|
311
311
|
"returns": "Promise<DownloadFileResult>",
|
|
312
312
|
"tags": [
|
|
313
|
+
{
|
|
314
|
+
"name": "deprecated",
|
|
315
|
+
"text": "Use"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "capacitor",
|
|
319
|
+
"text": "/file-transfer plugin instead."
|
|
320
|
+
},
|
|
313
321
|
{
|
|
314
322
|
"name": "since",
|
|
315
323
|
"text": "5.1.0"
|
|
@@ -339,6 +347,14 @@
|
|
|
339
347
|
],
|
|
340
348
|
"returns": "Promise<PluginListenerHandle>",
|
|
341
349
|
"tags": [
|
|
350
|
+
{
|
|
351
|
+
"name": "deprecated",
|
|
352
|
+
"text": "Use"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"name": "capacitor",
|
|
356
|
+
"text": "/file-transfer plugin instead."
|
|
357
|
+
},
|
|
342
358
|
{
|
|
343
359
|
"name": "since",
|
|
344
360
|
"text": "5.1.0"
|
|
@@ -357,6 +373,14 @@
|
|
|
357
373
|
"parameters": [],
|
|
358
374
|
"returns": "Promise<void>",
|
|
359
375
|
"tags": [
|
|
376
|
+
{
|
|
377
|
+
"name": "deprecated",
|
|
378
|
+
"text": "Use"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "capacitor",
|
|
382
|
+
"text": "/file-transfer plugin instead."
|
|
383
|
+
},
|
|
360
384
|
{
|
|
361
385
|
"name": "since",
|
|
362
386
|
"text": "5.2.0"
|
|
@@ -1144,6 +1168,14 @@
|
|
|
1144
1168
|
{
|
|
1145
1169
|
"name": "path",
|
|
1146
1170
|
"tags": [
|
|
1171
|
+
{
|
|
1172
|
+
"text": "Use",
|
|
1173
|
+
"name": "deprecated"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"text": "/file-transfer instead.",
|
|
1177
|
+
"name": "capacitor"
|
|
1178
|
+
},
|
|
1147
1179
|
{
|
|
1148
1180
|
"text": "5.1.0",
|
|
1149
1181
|
"name": "since"
|
|
@@ -1156,6 +1188,14 @@
|
|
|
1156
1188
|
{
|
|
1157
1189
|
"name": "blob",
|
|
1158
1190
|
"tags": [
|
|
1191
|
+
{
|
|
1192
|
+
"text": "Use",
|
|
1193
|
+
"name": "deprecated"
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"text": "/file-transfer instead.",
|
|
1197
|
+
"name": "capacitor"
|
|
1198
|
+
},
|
|
1159
1199
|
{
|
|
1160
1200
|
"text": "5.1.0",
|
|
1161
1201
|
"name": "since"
|
|
@@ -1179,6 +1219,14 @@
|
|
|
1179
1219
|
{
|
|
1180
1220
|
"name": "path",
|
|
1181
1221
|
"tags": [
|
|
1222
|
+
{
|
|
1223
|
+
"text": "Use",
|
|
1224
|
+
"name": "deprecated"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"text": "/file-transfer instead.",
|
|
1228
|
+
"name": "capacitor"
|
|
1229
|
+
},
|
|
1182
1230
|
{
|
|
1183
1231
|
"text": "5.1.0",
|
|
1184
1232
|
"name": "since"
|
|
@@ -1191,6 +1239,14 @@
|
|
|
1191
1239
|
{
|
|
1192
1240
|
"name": "directory",
|
|
1193
1241
|
"tags": [
|
|
1242
|
+
{
|
|
1243
|
+
"text": "Use",
|
|
1244
|
+
"name": "deprecated"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"text": "/file-transfer instead.",
|
|
1248
|
+
"name": "capacitor"
|
|
1249
|
+
},
|
|
1194
1250
|
{
|
|
1195
1251
|
"text": "5.1.0",
|
|
1196
1252
|
"name": "since"
|
|
@@ -1205,6 +1261,14 @@
|
|
|
1205
1261
|
{
|
|
1206
1262
|
"name": "progress",
|
|
1207
1263
|
"tags": [
|
|
1264
|
+
{
|
|
1265
|
+
"text": "Use",
|
|
1266
|
+
"name": "deprecated"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"text": "/file-transfer instead.",
|
|
1270
|
+
"name": "capacitor"
|
|
1271
|
+
},
|
|
1208
1272
|
{
|
|
1209
1273
|
"text": "5.1.0",
|
|
1210
1274
|
"name": "since"
|
|
@@ -1221,6 +1285,14 @@
|
|
|
1221
1285
|
"text": "false",
|
|
1222
1286
|
"name": "default"
|
|
1223
1287
|
},
|
|
1288
|
+
{
|
|
1289
|
+
"text": "Use",
|
|
1290
|
+
"name": "deprecated"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"text": "/file-transfer instead.",
|
|
1294
|
+
"name": "capacitor"
|
|
1295
|
+
},
|
|
1224
1296
|
{
|
|
1225
1297
|
"text": "5.1.2",
|
|
1226
1298
|
"name": "since"
|
|
@@ -1258,6 +1330,14 @@
|
|
|
1258
1330
|
{
|
|
1259
1331
|
"name": "url",
|
|
1260
1332
|
"tags": [
|
|
1333
|
+
{
|
|
1334
|
+
"text": "Use",
|
|
1335
|
+
"name": "deprecated"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"text": "/file-transfer instead.",
|
|
1339
|
+
"name": "capacitor"
|
|
1340
|
+
},
|
|
1261
1341
|
{
|
|
1262
1342
|
"text": "5.1.0",
|
|
1263
1343
|
"name": "since"
|
|
@@ -1270,6 +1350,14 @@
|
|
|
1270
1350
|
{
|
|
1271
1351
|
"name": "bytes",
|
|
1272
1352
|
"tags": [
|
|
1353
|
+
{
|
|
1354
|
+
"text": "Use",
|
|
1355
|
+
"name": "deprecated"
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"text": "/file-transfer instead.",
|
|
1359
|
+
"name": "capacitor"
|
|
1360
|
+
},
|
|
1273
1361
|
{
|
|
1274
1362
|
"text": "5.1.0",
|
|
1275
1363
|
"name": "since"
|
|
@@ -1282,6 +1370,14 @@
|
|
|
1282
1370
|
{
|
|
1283
1371
|
"name": "contentLength",
|
|
1284
1372
|
"tags": [
|
|
1373
|
+
{
|
|
1374
|
+
"text": "Use",
|
|
1375
|
+
"name": "deprecated"
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"text": "/file-transfer instead.",
|
|
1379
|
+
"name": "capacitor"
|
|
1380
|
+
},
|
|
1285
1381
|
{
|
|
1286
1382
|
"text": "5.1.0",
|
|
1287
1383
|
"name": "since"
|
|
@@ -425,6 +425,7 @@ export interface DownloadFileOptions extends HttpOptions {
|
|
|
425
425
|
/**
|
|
426
426
|
* The path the downloaded file should be moved to.
|
|
427
427
|
*
|
|
428
|
+
* @deprecated Use @capacitor/file-transfer instead.
|
|
428
429
|
* @since 5.1.0
|
|
429
430
|
*/
|
|
430
431
|
path: string;
|
|
@@ -433,6 +434,7 @@ export interface DownloadFileOptions extends HttpOptions {
|
|
|
433
434
|
* If this option is used, filePath can be a relative path rather than absolute.
|
|
434
435
|
* The default is the `DATA` directory.
|
|
435
436
|
*
|
|
437
|
+
* @deprecated Use @capacitor/file-transfer instead.
|
|
436
438
|
* @since 5.1.0
|
|
437
439
|
*/
|
|
438
440
|
directory?: Directory;
|
|
@@ -441,6 +443,7 @@ export interface DownloadFileOptions extends HttpOptions {
|
|
|
441
443
|
* If this option is used, progress event should be dispatched on every chunk received.
|
|
442
444
|
* Chunks are throttled to every 100ms on Android/iOS to avoid slowdowns.
|
|
443
445
|
*
|
|
446
|
+
* @deprecated Use @capacitor/file-transfer instead.
|
|
444
447
|
* @since 5.1.0
|
|
445
448
|
*/
|
|
446
449
|
progress?: boolean;
|
|
@@ -448,6 +451,7 @@ export interface DownloadFileOptions extends HttpOptions {
|
|
|
448
451
|
* Whether to create any missing parent directories.
|
|
449
452
|
*
|
|
450
453
|
* @default false
|
|
454
|
+
* @deprecated Use @capacitor/file-transfer instead.
|
|
451
455
|
* @since 5.1.2
|
|
452
456
|
*/
|
|
453
457
|
recursive?: boolean;
|
|
@@ -456,6 +460,7 @@ export interface DownloadFileResult {
|
|
|
456
460
|
/**
|
|
457
461
|
* The path the file was downloaded to.
|
|
458
462
|
*
|
|
463
|
+
* @deprecated Use @capacitor/file-transfer instead.
|
|
459
464
|
* @since 5.1.0
|
|
460
465
|
*/
|
|
461
466
|
path?: string;
|
|
@@ -463,6 +468,7 @@ export interface DownloadFileResult {
|
|
|
463
468
|
* The blob data of the downloaded file.
|
|
464
469
|
* This is only available on web.
|
|
465
470
|
*
|
|
471
|
+
* @deprecated Use @capacitor/file-transfer instead.
|
|
466
472
|
* @since 5.1.0
|
|
467
473
|
*/
|
|
468
474
|
blob?: Blob;
|
|
@@ -471,18 +477,21 @@ export interface ProgressStatus {
|
|
|
471
477
|
/**
|
|
472
478
|
* The url of the file being downloaded.
|
|
473
479
|
*
|
|
480
|
+
* @deprecated Use @capacitor/file-transfer instead.
|
|
474
481
|
* @since 5.1.0
|
|
475
482
|
*/
|
|
476
483
|
url: string;
|
|
477
484
|
/**
|
|
478
485
|
* The number of bytes downloaded so far.
|
|
479
486
|
*
|
|
487
|
+
* @deprecated Use @capacitor/file-transfer instead.
|
|
480
488
|
* @since 5.1.0
|
|
481
489
|
*/
|
|
482
490
|
bytes: number;
|
|
483
491
|
/**
|
|
484
492
|
* The total number of bytes to download for this file.
|
|
485
493
|
*
|
|
494
|
+
* @deprecated Use @capacitor/file-transfer instead.
|
|
486
495
|
* @since 5.1.0
|
|
487
496
|
*/
|
|
488
497
|
contentLength: number;
|
|
@@ -490,6 +499,7 @@ export interface ProgressStatus {
|
|
|
490
499
|
/**
|
|
491
500
|
* A listener function that receives progress events.
|
|
492
501
|
*
|
|
502
|
+
* @deprecated Use @capacitor/file-transfer instead.
|
|
493
503
|
* @since 5.1.0
|
|
494
504
|
*/
|
|
495
505
|
export declare type ProgressListener = (progress: ProgressStatus) => void;
|
|
@@ -579,18 +589,21 @@ export interface FilesystemPlugin {
|
|
|
579
589
|
/**
|
|
580
590
|
* Perform a http request to a server and download the file to the specified destination.
|
|
581
591
|
*
|
|
592
|
+
* @deprecated Use @capacitor/file-transfer plugin instead.
|
|
582
593
|
* @since 5.1.0
|
|
583
594
|
*/
|
|
584
595
|
downloadFile(options: DownloadFileOptions): Promise<DownloadFileResult>;
|
|
585
596
|
/**
|
|
586
597
|
* Add a listener to file download progress events.
|
|
587
598
|
*
|
|
599
|
+
* @deprecated Use @capacitor/file-transfer plugin instead.
|
|
588
600
|
* @since 5.1.0
|
|
589
601
|
*/
|
|
590
602
|
addListener(eventName: 'progress', listenerFunc: ProgressListener): Promise<PluginListenerHandle>;
|
|
591
603
|
/**
|
|
592
604
|
* Remove all listeners for this plugin.
|
|
593
605
|
*
|
|
606
|
+
* @deprecated Use @capacitor/file-transfer plugin instead.
|
|
594
607
|
* @since 5.2.0
|
|
595
608
|
*/
|
|
596
609
|
removeAllListeners(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAUA,MAAM,CAAN,IAAY,SAqEX;AArED,WAAY,SAAS;IACnB;;;;;;;;;;;OAWG;IACH,oCAAuB,CAAA;IAEvB;;;;;;;OAOG;IACH,0BAAa,CAAA;IAEb;;;;;;;OAOG;IACH,gCAAmB,CAAA;IAEnB;;;;;;OAMG;IACH,4BAAe,CAAA;IAEf;;;;;;;;;;OAUG;IACH,kCAAqB,CAAA;IAErB;;;;;;;;;;OAUG;IACH,iDAAoC,CAAA;AACtC,CAAC,EArEW,SAAS,KAAT,SAAS,QAqEpB;AAED,MAAM,CAAN,IAAY,QAyBX;AAzBD,WAAY,QAAQ;IAClB;;;;OAIG;IACH,yBAAa,CAAA;IAEb;;;;;;OAMG;IACH,2BAAe,CAAA;IAEf;;;;;;OAMG;IACH,2BAAe,CAAA;AACjB,CAAC,EAzBW,QAAQ,KAAR,QAAQ,QAyBnB;AAimBD;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE7C;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC","sourcesContent":["import type {\n HttpOptions,\n PermissionState,\n PluginListenerHandle,\n} from '@capacitor/core';\n\nexport interface PermissionStatus {\n publicStorage: PermissionState;\n}\n\nexport enum Directory {\n /**\n * The Documents directory.\n * On iOS it's the app's documents directory.\n * Use this directory to store user-generated content.\n * On Android it's the Public Documents folder, so it's accessible from other apps.\n * It's not accesible on Android 10 unless the app enables legacy External Storage\n * by adding `android:requestLegacyExternalStorage=\"true\"` in the `application` tag\n * in the `AndroidManifest.xml`.\n * On Android 11 or newer the app can only access the files/folders the app created.\n *\n * @since 1.0.0\n */\n Documents = 'DOCUMENTS',\n\n /**\n * The Data directory.\n * On iOS it will use the Documents directory.\n * On Android it's the directory holding application files.\n * Files will be deleted when the application is uninstalled.\n *\n * @since 1.0.0\n */\n Data = 'DATA',\n\n /**\n * The Library directory.\n * On iOS it will use the Library directory.\n * On Android it's the directory holding application files.\n * Files will be deleted when the application is uninstalled.\n *\n * @since 1.1.0\n */\n Library = 'LIBRARY',\n\n /**\n * The Cache directory.\n * Can be deleted in cases of low memory, so use this directory to write app-specific files.\n * that your app can re-create easily.\n *\n * @since 1.0.0\n */\n Cache = 'CACHE',\n\n /**\n * The external directory.\n * On iOS it will use the Documents directory.\n * On Android it's the directory on the primary shared/external\n * storage device where the application can place persistent files it owns.\n * These files are internal to the applications, and not typically visible\n * to the user as media.\n * Files will be deleted when the application is uninstalled.\n *\n * @since 1.0.0\n */\n External = 'EXTERNAL',\n\n /**\n * The external storage directory.\n * On iOS it will use the Documents directory.\n * On Android it's the primary shared/external storage directory.\n * It's not accesible on Android 10 unless the app enables legacy External Storage\n * by adding `android:requestLegacyExternalStorage=\"true\"` in the `application` tag\n * in the `AndroidManifest.xml`.\n * It's not accesible on Android 11 or newer.\n *\n * @since 1.0.0\n */\n ExternalStorage = 'EXTERNAL_STORAGE',\n}\n\nexport enum Encoding {\n /**\n * Eight-bit UCS Transformation Format\n *\n * @since 1.0.0\n */\n UTF8 = 'utf8',\n\n /**\n * Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the\n * Unicode character set\n * This encoding is only supported on Android.\n *\n * @since 1.0.0\n */\n ASCII = 'ascii',\n\n /**\n * Sixteen-bit UCS Transformation Format, byte order identified by an\n * optional byte-order mark\n * This encoding is only supported on Android.\n *\n * @since 1.0.0\n */\n UTF16 = 'utf16',\n}\n\nexport interface WriteFileOptions {\n /**\n * The path of the file to write\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The data to write\n *\n * Note: Blob data is only supported on Web.\n *\n * @since 1.0.0\n */\n data: string | Blob;\n\n /**\n * The `Directory` to store the file in\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * The encoding to write the file in. If not provided, data\n * is written as base64 encoded.\n *\n * Pass Encoding.UTF8 to write data as string\n *\n * @since 1.0.0\n */\n encoding?: Encoding;\n\n /**\n * Whether to create any missing parent directories.\n *\n * @default false\n * @since 1.0.0\n */\n recursive?: boolean;\n}\n\nexport interface AppendFileOptions {\n /**\n * The path of the file to append\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The data to write\n *\n * @since 1.0.0\n */\n data: string;\n\n /**\n * The `Directory` to store the file in\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * The encoding to write the file in. If not provided, data\n * is written as base64 encoded.\n *\n * Pass Encoding.UTF8 to write data as string\n *\n * @since 1.0.0\n */\n encoding?: Encoding;\n}\n\nexport interface ReadFileOptions {\n /**\n * The path of the file to read\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to read the file from\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * The encoding to read the file in, if not provided, data\n * is read as binary and returned as base64 encoded.\n *\n * Pass Encoding.UTF8 to read data as string\n *\n * @since 1.0.0\n */\n encoding?: Encoding;\n}\n\nexport interface DeleteFileOptions {\n /**\n * The path of the file to delete\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to delete the file from\n *\n * @since 1.0.0\n */\n directory?: Directory;\n}\n\nexport interface MkdirOptions {\n /**\n * The path of the new directory\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to make the new directory in\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * Whether to create any missing parent directories as well.\n *\n * @default false\n * @since 1.0.0\n */\n recursive?: boolean;\n}\n\nexport interface RmdirOptions {\n /**\n * The path of the directory to remove\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to remove the directory from\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * Whether to recursively remove the contents of the directory\n *\n * @default false\n * @since 1.0.0\n */\n recursive?: boolean;\n}\n\nexport interface ReaddirOptions {\n /**\n * The path of the directory to read\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to list files from\n *\n * @since 1.0.0\n */\n directory?: Directory;\n}\n\nexport interface GetUriOptions {\n /**\n * The path of the file to get the URI for\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to get the file under\n *\n * @since 1.0.0\n */\n directory: Directory;\n}\n\nexport interface StatOptions {\n /**\n * The path of the file to get data about\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to get the file under\n *\n * @since 1.0.0\n */\n directory?: Directory;\n}\n\nexport interface CopyOptions {\n /**\n * The existing file or directory\n *\n * @since 1.0.0\n */\n from: string;\n\n /**\n * The destination file or directory\n *\n * @since 1.0.0\n */\n to: string;\n\n /**\n * The `Directory` containing the existing file or directory\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * The `Directory` containing the destination file or directory. If not supplied will use the 'directory'\n * parameter as the destination\n *\n * @since 1.0.0\n */\n toDirectory?: Directory;\n}\n\nexport type RenameOptions = CopyOptions;\n\nexport interface ReadFileResult {\n /**\n * The representation of the data contained in the file\n *\n * Note: Blob is only available on Web. On native, the data is returned as a string.\n *\n * @since 1.0.0\n */\n data: string | Blob;\n}\n\nexport interface WriteFileResult {\n /**\n * The uri where the file was written into\n *\n * @since 1.0.0\n */\n uri: string;\n}\n\nexport interface ReaddirResult {\n /**\n * List of files and directories inside the directory\n *\n * @since 1.0.0\n */\n files: FileInfo[];\n}\n\nexport interface FileInfo {\n /**\n * Name of the file or directory.\n */\n name: string;\n /**\n * Type of the file.\n *\n * @since 4.0.0\n */\n type: 'directory' | 'file';\n\n /**\n * Size of the file in bytes.\n *\n * @since 4.0.0\n */\n size: number;\n\n /**\n * Time of creation in milliseconds.\n *\n * It's not available on Android 7 and older devices.\n *\n * @since 4.0.0\n */\n ctime?: number;\n\n /**\n * Time of last modification in milliseconds.\n *\n * @since 4.0.0\n */\n mtime: number;\n\n /**\n * The uri of the file.\n *\n * @since 4.0.0\n */\n uri: string;\n}\n\nexport interface GetUriResult {\n /**\n * The uri of the file\n *\n * @since 1.0.0\n */\n uri: string;\n}\n\nexport interface StatResult {\n /**\n * Type of the file.\n *\n * @since 1.0.0\n */\n type: 'directory' | 'file';\n\n /**\n * Size of the file in bytes.\n *\n * @since 1.0.0\n */\n size: number;\n\n /**\n * Time of creation in milliseconds.\n *\n * It's not available on Android 7 and older devices.\n *\n * @since 1.0.0\n */\n ctime?: number;\n\n /**\n * Time of last modification in milliseconds.\n *\n * @since 1.0.0\n */\n mtime: number;\n\n /**\n * The uri of the file\n *\n * @since 1.0.0\n */\n uri: string;\n}\n\nexport interface CopyResult {\n /**\n * The uri where the file was copied into\n *\n * @since 4.0.0\n */\n uri: string;\n}\n\nexport interface DownloadFileOptions extends HttpOptions {\n /**\n * The path the downloaded file should be moved to.\n *\n * @since 5.1.0\n */\n path: string;\n /**\n * The directory to write the file to.\n * If this option is used, filePath can be a relative path rather than absolute.\n * The default is the `DATA` directory.\n *\n * @since 5.1.0\n */\n directory?: Directory;\n /**\n * An optional listener function to receive downloaded progress events.\n * If this option is used, progress event should be dispatched on every chunk received.\n * Chunks are throttled to every 100ms on Android/iOS to avoid slowdowns.\n *\n * @since 5.1.0\n */\n progress?: boolean;\n /**\n * Whether to create any missing parent directories.\n *\n * @default false\n * @since 5.1.2\n */\n recursive?: boolean;\n}\n\nexport interface DownloadFileResult {\n /**\n * The path the file was downloaded to.\n *\n * @since 5.1.0\n */\n path?: string;\n /**\n * The blob data of the downloaded file.\n * This is only available on web.\n *\n * @since 5.1.0\n */\n blob?: Blob;\n}\nexport interface ProgressStatus {\n /**\n * The url of the file being downloaded.\n *\n * @since 5.1.0\n */\n url: string;\n /**\n * The number of bytes downloaded so far.\n *\n * @since 5.1.0\n */\n bytes: number;\n /**\n * The total number of bytes to download for this file.\n *\n * @since 5.1.0\n */\n contentLength: number;\n}\n\n/**\n * A listener function that receives progress events.\n *\n * @since 5.1.0\n */\nexport type ProgressListener = (progress: ProgressStatus) => void;\n\nexport interface FilesystemPlugin {\n /**\n * Read a file from disk\n *\n * @since 1.0.0\n */\n readFile(options: ReadFileOptions): Promise<ReadFileResult>;\n\n /**\n * Write a file to disk in the specified location on device\n *\n * @since 1.0.0\n */\n writeFile(options: WriteFileOptions): Promise<WriteFileResult>;\n\n /**\n * Append to a file on disk in the specified location on device\n *\n * @since 1.0.0\n */\n appendFile(options: AppendFileOptions): Promise<void>;\n\n /**\n * Delete a file from disk\n *\n * @since 1.0.0\n */\n deleteFile(options: DeleteFileOptions): Promise<void>;\n\n /**\n * Create a directory.\n *\n * @since 1.0.0\n */\n mkdir(options: MkdirOptions): Promise<void>;\n\n /**\n * Remove a directory\n *\n * @since 1.0.0\n */\n rmdir(options: RmdirOptions): Promise<void>;\n\n /**\n * Return a list of files from the directory (not recursive)\n *\n * @since 1.0.0\n */\n readdir(options: ReaddirOptions): Promise<ReaddirResult>;\n\n /**\n * Return full File URI for a path and directory\n *\n * @since 1.0.0\n */\n getUri(options: GetUriOptions): Promise<GetUriResult>;\n\n /**\n * Return data about a file\n *\n * @since 1.0.0\n */\n stat(options: StatOptions): Promise<StatResult>;\n\n /**\n * Rename a file or directory\n *\n * @since 1.0.0\n */\n rename(options: RenameOptions): Promise<void>;\n\n /**\n * Copy a file or directory\n *\n * @since 1.0.0\n */\n copy(options: CopyOptions): Promise<CopyResult>;\n\n /**\n * Check read/write permissions.\n * Required on Android, only when using `Directory.Documents` or\n * `Directory.ExternalStorage`.\n *\n * @since 1.0.0\n */\n checkPermissions(): Promise<PermissionStatus>;\n\n /**\n * Request read/write permissions.\n * Required on Android, only when using `Directory.Documents` or\n * `Directory.ExternalStorage`.\n *\n * @since 1.0.0\n */\n requestPermissions(): Promise<PermissionStatus>;\n\n /**\n * Perform a http request to a server and download the file to the specified destination.\n *\n * @since 5.1.0\n */\n downloadFile(options: DownloadFileOptions): Promise<DownloadFileResult>;\n\n /**\n * Add a listener to file download progress events.\n *\n * @since 5.1.0\n */\n addListener(\n eventName: 'progress',\n listenerFunc: ProgressListener,\n ): Promise<PluginListenerHandle>;\n /**\n * Remove all listeners for this plugin.\n *\n * @since 5.2.0\n */\n removeAllListeners(): Promise<void>;\n}\n\n/**\n * @deprecated Use `ReadFileOptions`.\n * @since 1.0.0\n */\nexport type FileReadOptions = ReadFileOptions;\n\n/**\n * @deprecated Use `ReadFileResult`.\n * @since 1.0.0\n */\nexport type FileReadResult = ReadFileResult;\n\n/**\n * @deprecated Use `WriteFileOptions`.\n * @since 1.0.0\n */\nexport type FileWriteOptions = WriteFileOptions;\n\n/**\n * @deprecated Use `WriteFileResult`.\n * @since 1.0.0\n */\nexport type FileWriteResult = WriteFileResult;\n\n/**\n * @deprecated Use `AppendFileOptions`.\n * @since 1.0.0\n */\nexport type FileAppendOptions = AppendFileOptions;\n\n/**\n * @deprecated Use `DeleteFileOptions`.\n * @since 1.0.0\n */\nexport type FileDeleteOptions = DeleteFileOptions;\n\n/**\n * @deprecated Use `Directory`.\n * @since 1.0.0\n */\nexport const FilesystemDirectory = Directory;\n\n/**\n * @deprecated Use `Encoding`.\n * @since 1.0.0\n */\nexport const FilesystemEncoding = Encoding;\n"]}
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAUA,MAAM,CAAN,IAAY,SAqEX;AArED,WAAY,SAAS;IACnB;;;;;;;;;;;OAWG;IACH,oCAAuB,CAAA;IAEvB;;;;;;;OAOG;IACH,0BAAa,CAAA;IAEb;;;;;;;OAOG;IACH,gCAAmB,CAAA;IAEnB;;;;;;OAMG;IACH,4BAAe,CAAA;IAEf;;;;;;;;;;OAUG;IACH,kCAAqB,CAAA;IAErB;;;;;;;;;;OAUG;IACH,iDAAoC,CAAA;AACtC,CAAC,EArEW,SAAS,KAAT,SAAS,QAqEpB;AAED,MAAM,CAAN,IAAY,QAyBX;AAzBD,WAAY,QAAQ;IAClB;;;;OAIG;IACH,yBAAa,CAAA;IAEb;;;;;;OAMG;IACH,2BAAe,CAAA;IAEf;;;;;;OAMG;IACH,2BAAe,CAAA;AACjB,CAAC,EAzBW,QAAQ,KAAR,QAAQ,QAyBnB;AA8mBD;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE7C;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC","sourcesContent":["import type {\n HttpOptions,\n PermissionState,\n PluginListenerHandle,\n} from '@capacitor/core';\n\nexport interface PermissionStatus {\n publicStorage: PermissionState;\n}\n\nexport enum Directory {\n /**\n * The Documents directory.\n * On iOS it's the app's documents directory.\n * Use this directory to store user-generated content.\n * On Android it's the Public Documents folder, so it's accessible from other apps.\n * It's not accesible on Android 10 unless the app enables legacy External Storage\n * by adding `android:requestLegacyExternalStorage=\"true\"` in the `application` tag\n * in the `AndroidManifest.xml`.\n * On Android 11 or newer the app can only access the files/folders the app created.\n *\n * @since 1.0.0\n */\n Documents = 'DOCUMENTS',\n\n /**\n * The Data directory.\n * On iOS it will use the Documents directory.\n * On Android it's the directory holding application files.\n * Files will be deleted when the application is uninstalled.\n *\n * @since 1.0.0\n */\n Data = 'DATA',\n\n /**\n * The Library directory.\n * On iOS it will use the Library directory.\n * On Android it's the directory holding application files.\n * Files will be deleted when the application is uninstalled.\n *\n * @since 1.1.0\n */\n Library = 'LIBRARY',\n\n /**\n * The Cache directory.\n * Can be deleted in cases of low memory, so use this directory to write app-specific files.\n * that your app can re-create easily.\n *\n * @since 1.0.0\n */\n Cache = 'CACHE',\n\n /**\n * The external directory.\n * On iOS it will use the Documents directory.\n * On Android it's the directory on the primary shared/external\n * storage device where the application can place persistent files it owns.\n * These files are internal to the applications, and not typically visible\n * to the user as media.\n * Files will be deleted when the application is uninstalled.\n *\n * @since 1.0.0\n */\n External = 'EXTERNAL',\n\n /**\n * The external storage directory.\n * On iOS it will use the Documents directory.\n * On Android it's the primary shared/external storage directory.\n * It's not accesible on Android 10 unless the app enables legacy External Storage\n * by adding `android:requestLegacyExternalStorage=\"true\"` in the `application` tag\n * in the `AndroidManifest.xml`.\n * It's not accesible on Android 11 or newer.\n *\n * @since 1.0.0\n */\n ExternalStorage = 'EXTERNAL_STORAGE',\n}\n\nexport enum Encoding {\n /**\n * Eight-bit UCS Transformation Format\n *\n * @since 1.0.0\n */\n UTF8 = 'utf8',\n\n /**\n * Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the\n * Unicode character set\n * This encoding is only supported on Android.\n *\n * @since 1.0.0\n */\n ASCII = 'ascii',\n\n /**\n * Sixteen-bit UCS Transformation Format, byte order identified by an\n * optional byte-order mark\n * This encoding is only supported on Android.\n *\n * @since 1.0.0\n */\n UTF16 = 'utf16',\n}\n\nexport interface WriteFileOptions {\n /**\n * The path of the file to write\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The data to write\n *\n * Note: Blob data is only supported on Web.\n *\n * @since 1.0.0\n */\n data: string | Blob;\n\n /**\n * The `Directory` to store the file in\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * The encoding to write the file in. If not provided, data\n * is written as base64 encoded.\n *\n * Pass Encoding.UTF8 to write data as string\n *\n * @since 1.0.0\n */\n encoding?: Encoding;\n\n /**\n * Whether to create any missing parent directories.\n *\n * @default false\n * @since 1.0.0\n */\n recursive?: boolean;\n}\n\nexport interface AppendFileOptions {\n /**\n * The path of the file to append\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The data to write\n *\n * @since 1.0.0\n */\n data: string;\n\n /**\n * The `Directory` to store the file in\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * The encoding to write the file in. If not provided, data\n * is written as base64 encoded.\n *\n * Pass Encoding.UTF8 to write data as string\n *\n * @since 1.0.0\n */\n encoding?: Encoding;\n}\n\nexport interface ReadFileOptions {\n /**\n * The path of the file to read\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to read the file from\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * The encoding to read the file in, if not provided, data\n * is read as binary and returned as base64 encoded.\n *\n * Pass Encoding.UTF8 to read data as string\n *\n * @since 1.0.0\n */\n encoding?: Encoding;\n}\n\nexport interface DeleteFileOptions {\n /**\n * The path of the file to delete\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to delete the file from\n *\n * @since 1.0.0\n */\n directory?: Directory;\n}\n\nexport interface MkdirOptions {\n /**\n * The path of the new directory\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to make the new directory in\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * Whether to create any missing parent directories as well.\n *\n * @default false\n * @since 1.0.0\n */\n recursive?: boolean;\n}\n\nexport interface RmdirOptions {\n /**\n * The path of the directory to remove\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to remove the directory from\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * Whether to recursively remove the contents of the directory\n *\n * @default false\n * @since 1.0.0\n */\n recursive?: boolean;\n}\n\nexport interface ReaddirOptions {\n /**\n * The path of the directory to read\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to list files from\n *\n * @since 1.0.0\n */\n directory?: Directory;\n}\n\nexport interface GetUriOptions {\n /**\n * The path of the file to get the URI for\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to get the file under\n *\n * @since 1.0.0\n */\n directory: Directory;\n}\n\nexport interface StatOptions {\n /**\n * The path of the file to get data about\n *\n * @since 1.0.0\n */\n path: string;\n\n /**\n * The `Directory` to get the file under\n *\n * @since 1.0.0\n */\n directory?: Directory;\n}\n\nexport interface CopyOptions {\n /**\n * The existing file or directory\n *\n * @since 1.0.0\n */\n from: string;\n\n /**\n * The destination file or directory\n *\n * @since 1.0.0\n */\n to: string;\n\n /**\n * The `Directory` containing the existing file or directory\n *\n * @since 1.0.0\n */\n directory?: Directory;\n\n /**\n * The `Directory` containing the destination file or directory. If not supplied will use the 'directory'\n * parameter as the destination\n *\n * @since 1.0.0\n */\n toDirectory?: Directory;\n}\n\nexport type RenameOptions = CopyOptions;\n\nexport interface ReadFileResult {\n /**\n * The representation of the data contained in the file\n *\n * Note: Blob is only available on Web. On native, the data is returned as a string.\n *\n * @since 1.0.0\n */\n data: string | Blob;\n}\n\nexport interface WriteFileResult {\n /**\n * The uri where the file was written into\n *\n * @since 1.0.0\n */\n uri: string;\n}\n\nexport interface ReaddirResult {\n /**\n * List of files and directories inside the directory\n *\n * @since 1.0.0\n */\n files: FileInfo[];\n}\n\nexport interface FileInfo {\n /**\n * Name of the file or directory.\n */\n name: string;\n /**\n * Type of the file.\n *\n * @since 4.0.0\n */\n type: 'directory' | 'file';\n\n /**\n * Size of the file in bytes.\n *\n * @since 4.0.0\n */\n size: number;\n\n /**\n * Time of creation in milliseconds.\n *\n * It's not available on Android 7 and older devices.\n *\n * @since 4.0.0\n */\n ctime?: number;\n\n /**\n * Time of last modification in milliseconds.\n *\n * @since 4.0.0\n */\n mtime: number;\n\n /**\n * The uri of the file.\n *\n * @since 4.0.0\n */\n uri: string;\n}\n\nexport interface GetUriResult {\n /**\n * The uri of the file\n *\n * @since 1.0.0\n */\n uri: string;\n}\n\nexport interface StatResult {\n /**\n * Type of the file.\n *\n * @since 1.0.0\n */\n type: 'directory' | 'file';\n\n /**\n * Size of the file in bytes.\n *\n * @since 1.0.0\n */\n size: number;\n\n /**\n * Time of creation in milliseconds.\n *\n * It's not available on Android 7 and older devices.\n *\n * @since 1.0.0\n */\n ctime?: number;\n\n /**\n * Time of last modification in milliseconds.\n *\n * @since 1.0.0\n */\n mtime: number;\n\n /**\n * The uri of the file\n *\n * @since 1.0.0\n */\n uri: string;\n}\n\nexport interface CopyResult {\n /**\n * The uri where the file was copied into\n *\n * @since 4.0.0\n */\n uri: string;\n}\n\nexport interface DownloadFileOptions extends HttpOptions {\n /**\n * The path the downloaded file should be moved to.\n *\n * @deprecated Use @capacitor/file-transfer instead.\n * @since 5.1.0\n */\n path: string;\n /**\n * The directory to write the file to.\n * If this option is used, filePath can be a relative path rather than absolute.\n * The default is the `DATA` directory.\n *\n * @deprecated Use @capacitor/file-transfer instead.\n * @since 5.1.0\n */\n directory?: Directory;\n /**\n * An optional listener function to receive downloaded progress events.\n * If this option is used, progress event should be dispatched on every chunk received.\n * Chunks are throttled to every 100ms on Android/iOS to avoid slowdowns.\n *\n * @deprecated Use @capacitor/file-transfer instead.\n * @since 5.1.0\n */\n progress?: boolean;\n /**\n * Whether to create any missing parent directories.\n *\n * @default false\n * @deprecated Use @capacitor/file-transfer instead.\n * @since 5.1.2\n */\n recursive?: boolean;\n}\n\nexport interface DownloadFileResult {\n /**\n * The path the file was downloaded to.\n *\n * @deprecated Use @capacitor/file-transfer instead.\n * @since 5.1.0\n */\n path?: string;\n /**\n * The blob data of the downloaded file.\n * This is only available on web.\n *\n * @deprecated Use @capacitor/file-transfer instead.\n * @since 5.1.0\n */\n blob?: Blob;\n}\nexport interface ProgressStatus {\n /**\n * The url of the file being downloaded.\n *\n * @deprecated Use @capacitor/file-transfer instead.\n * @since 5.1.0\n */\n url: string;\n /**\n * The number of bytes downloaded so far.\n *\n * @deprecated Use @capacitor/file-transfer instead.\n * @since 5.1.0\n */\n bytes: number;\n /**\n * The total number of bytes to download for this file.\n *\n * @deprecated Use @capacitor/file-transfer instead.\n * @since 5.1.0\n */\n contentLength: number;\n}\n\n/**\n * A listener function that receives progress events.\n *\n * @deprecated Use @capacitor/file-transfer instead.\n * @since 5.1.0\n */\nexport type ProgressListener = (progress: ProgressStatus) => void;\n\nexport interface FilesystemPlugin {\n /**\n * Read a file from disk\n *\n * @since 1.0.0\n */\n readFile(options: ReadFileOptions): Promise<ReadFileResult>;\n\n /**\n * Write a file to disk in the specified location on device\n *\n * @since 1.0.0\n */\n writeFile(options: WriteFileOptions): Promise<WriteFileResult>;\n\n /**\n * Append to a file on disk in the specified location on device\n *\n * @since 1.0.0\n */\n appendFile(options: AppendFileOptions): Promise<void>;\n\n /**\n * Delete a file from disk\n *\n * @since 1.0.0\n */\n deleteFile(options: DeleteFileOptions): Promise<void>;\n\n /**\n * Create a directory.\n *\n * @since 1.0.0\n */\n mkdir(options: MkdirOptions): Promise<void>;\n\n /**\n * Remove a directory\n *\n * @since 1.0.0\n */\n rmdir(options: RmdirOptions): Promise<void>;\n\n /**\n * Return a list of files from the directory (not recursive)\n *\n * @since 1.0.0\n */\n readdir(options: ReaddirOptions): Promise<ReaddirResult>;\n\n /**\n * Return full File URI for a path and directory\n *\n * @since 1.0.0\n */\n getUri(options: GetUriOptions): Promise<GetUriResult>;\n\n /**\n * Return data about a file\n *\n * @since 1.0.0\n */\n stat(options: StatOptions): Promise<StatResult>;\n\n /**\n * Rename a file or directory\n *\n * @since 1.0.0\n */\n rename(options: RenameOptions): Promise<void>;\n\n /**\n * Copy a file or directory\n *\n * @since 1.0.0\n */\n copy(options: CopyOptions): Promise<CopyResult>;\n\n /**\n * Check read/write permissions.\n * Required on Android, only when using `Directory.Documents` or\n * `Directory.ExternalStorage`.\n *\n * @since 1.0.0\n */\n checkPermissions(): Promise<PermissionStatus>;\n\n /**\n * Request read/write permissions.\n * Required on Android, only when using `Directory.Documents` or\n * `Directory.ExternalStorage`.\n *\n * @since 1.0.0\n */\n requestPermissions(): Promise<PermissionStatus>;\n\n /**\n * Perform a http request to a server and download the file to the specified destination.\n *\n * @deprecated Use @capacitor/file-transfer plugin instead.\n * @since 5.1.0\n */\n downloadFile(options: DownloadFileOptions): Promise<DownloadFileResult>;\n\n /**\n * Add a listener to file download progress events.\n *\n * @deprecated Use @capacitor/file-transfer plugin instead.\n * @since 5.1.0\n */\n addListener(\n eventName: 'progress',\n listenerFunc: ProgressListener,\n ): Promise<PluginListenerHandle>;\n /**\n * Remove all listeners for this plugin.\n *\n * @deprecated Use @capacitor/file-transfer plugin instead.\n * @since 5.2.0\n */\n removeAllListeners(): Promise<void>;\n}\n\n/**\n * @deprecated Use `ReadFileOptions`.\n * @since 1.0.0\n */\nexport type FileReadOptions = ReadFileOptions;\n\n/**\n * @deprecated Use `ReadFileResult`.\n * @since 1.0.0\n */\nexport type FileReadResult = ReadFileResult;\n\n/**\n * @deprecated Use `WriteFileOptions`.\n * @since 1.0.0\n */\nexport type FileWriteOptions = WriteFileOptions;\n\n/**\n * @deprecated Use `WriteFileResult`.\n * @since 1.0.0\n */\nexport type FileWriteResult = WriteFileResult;\n\n/**\n * @deprecated Use `AppendFileOptions`.\n * @since 1.0.0\n */\nexport type FileAppendOptions = AppendFileOptions;\n\n/**\n * @deprecated Use `DeleteFileOptions`.\n * @since 1.0.0\n */\nexport type FileDeleteOptions = DeleteFileOptions;\n\n/**\n * @deprecated Use `Directory`.\n * @since 1.0.0\n */\nexport const FilesystemDirectory = Directory;\n\n/**\n * @deprecated Use `Encoding`.\n * @since 1.0.0\n */\nexport const FilesystemEncoding = Encoding;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/filesystem",
|
|
3
|
-
"version": "7.0.2-nightly-
|
|
3
|
+
"version": "7.0.2-nightly-20250527T150614.0",
|
|
4
4
|
"description": "The Filesystem API provides a NodeJS-like API for working with files on the device.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "228ae69bd01eb92cb0c2f6c50088671a9e94732b"
|
|
85
85
|
}
|