Skip to content

Commit 8e587b8

Browse files
authored
Merge pull request swiftlang#2018 from compnerd/i-know-what-im-doing
2 parents fb55cd4 + 420ca56 commit 8e587b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Foundation/FileManager.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ open class FileManager : NSObject {
705705

706706

707707
try path.withCString(encodedAs: UTF16.self) {
708-
if CreateDirectoryW($0, psaAttributes) != FALSE {
708+
if CreateDirectoryW($0, psaAttributes) == FALSE {
709709
// FIXME(compnerd) pass along path
710710
throw _NSErrorWithWindowsError(GetLastError(), reading: false)
711711
}

0 commit comments

Comments
 (0)