Skip to content

Commit

Permalink
Fix Dictionary type
Browse files Browse the repository at this point in the history
[AnyHashable : Any].filePosixPermissions() always returns 0
  • Loading branch information
kameike committed Sep 22, 2016
1 parent f195fed commit cc960dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftFilePath/Path.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ open class Path {
fileprivate func loadAttributes() -> NSDictionary? {
assert(self.exists,"File must be exists to load file.< \(path_string) >")
var loadError: NSError?
let result: [AnyHashable: Any]?
let result: [FileAttributeKey : Any]?
do {
result = try self.fileManager.attributesOfItem(atPath: path_string)
} catch let error as NSError {
Expand Down

0 comments on commit cc960dd

Please sign in to comment.