Skip to content

Commit bd2a309

Browse files
weichselkevints
authored andcommitted
Change type of the attributes dictionary key to match the Darwin version
1 parent 9f38bec commit bd2a309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/FileManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ open class FileManager : NSObject {
624624
}
625625
}
626626

627-
open func createFile(atPath path: String, contents data: Data?, attributes attr: [String : Any]? = [:]) -> Bool {
627+
open func createFile(atPath path: String, contents data: Data?, attributes attr: [FileAttributeKey : Any]? = nil) -> Bool {
628628
do {
629629
try (data ?? Data()).write(to: URL(fileURLWithPath: path), options: .atomic)
630630
return true

0 commit comments

Comments
 (0)