@capacitor/filesystem 6.0.0-dev-1933-20231204T092339.0 → 6.0.0-dev-1947-20231205T145706.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/android/build.gradle
CHANGED
|
@@ -15,7 +15,7 @@ buildscript {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
dependencies {
|
|
18
|
-
classpath 'com.android.tools.build:gradle:8.2.0'
|
|
18
|
+
classpath 'com.android.tools.build:gradle:8.2.0-rc02'
|
|
19
19
|
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
|
|
20
20
|
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
|
|
21
21
|
}
|
|
@@ -190,15 +190,15 @@ public class FilesystemPlugin: CAPPlugin {
|
|
|
190
190
|
let directoryContents = try implementation.readdir(at: fileUrl)
|
|
191
191
|
let directoryContent = try directoryContents.map {(url: URL) -> [String: Any] in
|
|
192
192
|
let attr = try implementation.stat(at: url)
|
|
193
|
-
var ctime =
|
|
194
|
-
var mtime =
|
|
193
|
+
var ctime: UInt64 = 0
|
|
194
|
+
var mtime: UInt64 = 0
|
|
195
195
|
|
|
196
196
|
if let ctimeSeconds = (attr[.creationDate] as? Date)?.timeIntervalSince1970 {
|
|
197
|
-
ctime =
|
|
197
|
+
ctime = UInt64((ctimeSeconds * 1000).rounded())
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
if let mtimeSeconds = (attr[.modificationDate] as? Date)?.timeIntervalSince1970 {
|
|
201
|
-
mtime =
|
|
201
|
+
mtime = UInt64((mtimeSeconds * 1000).rounded())
|
|
202
202
|
}
|
|
203
203
|
return [
|
|
204
204
|
"name": url.lastPathComponent,
|
|
@@ -232,15 +232,15 @@ public class FilesystemPlugin: CAPPlugin {
|
|
|
232
232
|
do {
|
|
233
233
|
let attr = try implementation.stat(at: fileUrl)
|
|
234
234
|
|
|
235
|
-
var ctime =
|
|
236
|
-
var mtime =
|
|
235
|
+
var ctime: UInt64 = 0
|
|
236
|
+
var mtime: UInt64 = 0
|
|
237
237
|
|
|
238
238
|
if let ctimeSeconds = (attr[.creationDate] as? Date)?.timeIntervalSince1970 {
|
|
239
|
-
ctime =
|
|
239
|
+
ctime = UInt64((ctimeSeconds * 1000).rounded())
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
if let mtimeSeconds = (attr[.modificationDate] as? Date)?.timeIntervalSince1970 {
|
|
243
|
-
mtime =
|
|
243
|
+
mtime = UInt64((mtimeSeconds * 1000).rounded())
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
call.resolve([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/filesystem",
|
|
3
|
-
"version": "6.0.0-dev-
|
|
3
|
+
"version": "6.0.0-dev-1947-20231205T145706.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",
|