We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd1f79 commit a3f5cc0Copy full SHA for a3f5cc0
Foundation/FileManager+Win32.swift
@@ -406,7 +406,7 @@ extension FileManager {
406
guard alreadyConfirmed || shouldRemoveItemAtPath(path, isURL: isURL) else {
407
return
408
}
409
- let faAttributes = try! windowsFileAttributes(atPath: path)
+ let faAttributes = try windowsFileAttributes(atPath: path)
410
if faAttributes.dwFileAttributes & DWORD(FILE_ATTRIBUTE_DIRECTORY) == 0 {
411
if !path.withCString(encodedAs: UTF16.self, DeleteFileW) {
412
throw _NSErrorWithWindowsError(GetLastError(), reading: false)
0 commit comments