Skip to content

Commit

Permalink
fix(ios/Filesystem): make readdir return only content names (#1819)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jul 29, 2019
1 parent 4059694 commit 87b6fc1
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 @@ -282,7 +282,7 @@ public class CAPFilesystemPlugin : CAPPlugin {
let directoryContents = try FileManager.default.contentsOfDirectory(at: fileUrl, includingPropertiesForKeys: nil, options: [])

let directoryPathStrings = directoryContents.map {(url: URL) -> String in
return url.path
return url.lastPathComponent
}

call.success([
Expand Down

0 comments on commit 87b6fc1

Please sign in to comment.