diff --git a/ios/Capacitor/Capacitor/Plugins/Filesystem.swift b/ios/Capacitor/Capacitor/Plugins/Filesystem.swift index 0618dd5559..201a1d6ee3 100644 --- a/ios/Capacitor/Capacitor/Plugins/Filesystem.swift +++ b/ios/Capacitor/Capacitor/Plugins/Filesystem.swift @@ -103,7 +103,7 @@ public class CAPFilesystemPlugin : CAPPlugin { } do { - if !FileManager.default.fileExists(atPath: fileUrl.deletingLastPathComponent().absoluteString) { + if !FileManager.default.fileExists(atPath: fileUrl.deletingLastPathComponent().path) { if recursive { try FileManager.default.createDirectory(at: fileUrl.deletingLastPathComponent(), withIntermediateDirectories: recursive, attributes: nil) } else {