@capacitor/filesystem 6.0.0-nightly-20231208T150448.0 → 6.0.0-nightly-20231211T150530.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.
@@ -15,7 +15,7 @@ buildscript {
15
15
  }
16
16
  }
17
17
  dependencies {
18
- classpath 'com.android.tools.build:gradle:8.2.0-rc02'
18
+ classpath 'com.android.tools.build:gradle:8.2.0'
19
19
  if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
20
20
  classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
21
21
  }
@@ -208,15 +208,15 @@ public class FilesystemPlugin: CAPPlugin, CAPBridgedPlugin {
208
208
  let directoryContents = try implementation.readdir(at: fileUrl)
209
209
  let directoryContent = try directoryContents.map {(url: URL) -> [String: Any] in
210
210
  let attr = try implementation.stat(at: url)
211
- var ctime = ""
212
- var mtime = ""
211
+ var ctime: UInt64 = 0
212
+ var mtime: UInt64 = 0
213
213
 
214
214
  if let ctimeSeconds = (attr[.creationDate] as? Date)?.timeIntervalSince1970 {
215
- ctime = String(format: "%.0f", ctimeSeconds * 1000)
215
+ ctime = UInt64((ctimeSeconds * 1000).rounded())
216
216
  }
217
217
 
218
218
  if let mtimeSeconds = (attr[.modificationDate] as? Date)?.timeIntervalSince1970 {
219
- mtime = String(format: "%.0f", mtimeSeconds * 1000)
219
+ mtime = UInt64((mtimeSeconds * 1000).rounded())
220
220
  }
221
221
  return [
222
222
  "name": url.lastPathComponent,
@@ -250,15 +250,15 @@ public class FilesystemPlugin: CAPPlugin, CAPBridgedPlugin {
250
250
  do {
251
251
  let attr = try implementation.stat(at: fileUrl)
252
252
 
253
- var ctime = ""
254
- var mtime = ""
253
+ var ctime: UInt64 = 0
254
+ var mtime: UInt64 = 0
255
255
 
256
256
  if let ctimeSeconds = (attr[.creationDate] as? Date)?.timeIntervalSince1970 {
257
- ctime = String(format: "%.0f", ctimeSeconds * 1000)
257
+ ctime = UInt64((ctimeSeconds * 1000).rounded())
258
258
  }
259
259
 
260
260
  if let mtimeSeconds = (attr[.modificationDate] as? Date)?.timeIntervalSince1970 {
261
- mtime = String(format: "%.0f", mtimeSeconds * 1000)
261
+ mtime = UInt64((mtimeSeconds * 1000).rounded())
262
262
  }
263
263
 
264
264
  call.resolve([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/filesystem",
3
- "version": "6.0.0-nightly-20231208T150448.0",
3
+ "version": "6.0.0-nightly-20231211T150530.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": "bba678be0a45abc4f199b5be3eecc5c357c54a6a"
84
+ "gitHead": "79cbfe9ce185e540c3e62eca0e4f01dccfbda435"
85
85
  }