Skip to content

Commit

Permalink
fix(ios): writeFile failing on root folders (#2670)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Mar 31, 2020
1 parent 6a6cd8b commit f7a800c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Capacitor/Capacitor/Plugins/Filesystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f7a800c

Please sign in to comment.