@capacitor/filesystem 4.0.2-nightly-77a1689.0 → 4.1.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/CHANGELOG.md CHANGED
@@ -3,6 +3,50 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.1.0](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/filesystem@1.1.0...@capacitor/filesystem@4.1.0) (2022-08-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **filesystem:** failing to remove folder content on rmdir ([#1112](https://github.com/ionic-team/capacitor-plugins/issues/1112)) ([ae451aa](https://github.com/ionic-team/capacitor-plugins/commit/ae451aa08beb2138ecebdfcdd26101660aa00fde))
12
+ * **filesystem:** make iOS return proper url on readdir ([#1142](https://github.com/ionic-team/capacitor-plugins/issues/1142)) ([77dc02f](https://github.com/ionic-team/capacitor-plugins/commit/77dc02fb829ad3479144368da16f9fff324f2706))
13
+
14
+
15
+
16
+ ## 4.0.1 (2022-07-28)
17
+
18
+
19
+
20
+ # 4.0.0 (2022-07-27)
21
+
22
+
23
+
24
+ # 4.0.0-beta.2 (2022-07-08)
25
+
26
+
27
+
28
+ # 4.0.0-beta.0 (2022-06-27)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **filesystem:** Prevent android crash on invalid base64 write ([#937](https://github.com/ionic-team/capacitor-plugins/issues/937)) ([1af0bfe](https://github.com/ionic-team/capacitor-plugins/commit/1af0bfe24d2a36bc2949fe52866131c3327b321e))
34
+ * **filesystem:** web appendFile with base64 data ([#928](https://github.com/ionic-team/capacitor-plugins/issues/928)) ([80253cf](https://github.com/ionic-team/capacitor-plugins/commit/80253cf2652bf7fa9c07933989cbdffeadd52a27))
35
+
36
+
37
+ ### Features
38
+
39
+ * set targetSDK default value to 32 ([#970](https://github.com/ionic-team/capacitor-plugins/issues/970)) ([fa70d96](https://github.com/ionic-team/capacitor-plugins/commit/fa70d96f141af751aae53ceb5642c46b204f5958))
40
+ * **filesystem:** Make readDir return files information ([#949](https://github.com/ionic-team/capacitor-plugins/issues/949)) ([0a9f43d](https://github.com/ionic-team/capacitor-plugins/commit/0a9f43dffd3815f600c35ed4528c017644fdb55e))
41
+ * **filesystem:** Return path of copied file ([#931](https://github.com/ionic-team/capacitor-plugins/issues/931)) ([310f583](https://github.com/ionic-team/capacitor-plugins/commit/310f583ccec58730ab8046a1618782c950c60656))
42
+ * set targetSDK default value to 31 ([#824](https://github.com/ionic-team/capacitor-plugins/issues/824)) ([3ee10de](https://github.com/ionic-team/capacitor-plugins/commit/3ee10de98067984c1a4e75295d001c5a895c47f4))
43
+ * Upgrade gradle to 7.4 ([#826](https://github.com/ionic-team/capacitor-plugins/issues/826)) ([5db0906](https://github.com/ionic-team/capacitor-plugins/commit/5db0906f6264287c4f8e69dbaecf19d4d387824b))
44
+ * Use java 11 ([#910](https://github.com/ionic-team/capacitor-plugins/issues/910)) ([5acb2a2](https://github.com/ionic-team/capacitor-plugins/commit/5acb2a288a413492b163e4e97da46a085d9e4be0))
45
+
46
+
47
+
48
+
49
+
6
50
  ## [4.0.1](https://github.com/ionic-team/capacitor-plugins/compare/4.0.0...4.0.1) (2022-07-28)
7
51
 
8
52
  **Note:** Version bump only for package @capacitor/filesystem
@@ -168,8 +168,10 @@ import Foundation
168
168
  guard let dir = FileManager.default.urls(for: directory, in: .userDomainMask).first else {
169
169
  return nil
170
170
  }
171
-
172
- return dir.appendingPathComponent(path)
171
+ if !path.isEmpty {
172
+ return dir.appendingPathComponent(path)
173
+ }
174
+ return dir
173
175
  } else {
174
176
  return URL(string: path)
175
177
  }
@@ -206,7 +206,7 @@ public class FilesystemPlugin: CAPPlugin {
206
206
  "size": attr[.size] as? UInt64 ?? 0,
207
207
  "ctime": ctime,
208
208
  "mtime": mtime,
209
- "uri": fileUrl.absoluteString
209
+ "uri": url.absoluteString
210
210
  ]
211
211
  }
212
212
  call.resolve([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/filesystem",
3
- "version": "4.0.2-nightly-77a1689.0",
3
+ "version": "4.1.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",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "77a16895a459ffb11d25fb15929905fecb5573ed"
82
+ "gitHead": "7b1d156bdc6354104ee46f69e5eca7e2c4c7f739"
83
83
  }