Skip to content

Commit d3965d1

Browse files
authored
Merge pull request #762 from ikesyo/filemanager-swift-error
2 parents c81b922 + bf0a8a8 commit d3965d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Foundation/NSFileManager.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -966,14 +966,14 @@ extension FileManager {
966966
internal class NSURLDirectoryEnumerator : DirectoryEnumerator {
967967
var _url : URL
968968
var _options : FileManager.DirectoryEnumerationOptions
969-
var _errorHandler : ((URL, NSError) -> Bool)?
969+
var _errorHandler : ((URL, Error) -> Bool)?
970970
var _stream : UnsafeMutablePointer<FTS>? = nil
971971
var _current : UnsafeMutablePointer<FTSENT>? = nil
972-
var _rootError : NSError? = nil
972+
var _rootError : Error? = nil
973973
var _gotRoot : Bool = false
974974

975975
// See @escaping comments above.
976-
init(url: URL, options: FileManager.DirectoryEnumerationOptions, errorHandler: (/* @escaping */ (URL, NSError) -> Bool)?) {
976+
init(url: URL, options: FileManager.DirectoryEnumerationOptions, errorHandler: (/* @escaping */ (URL, Error) -> Bool)?) {
977977
_url = url
978978
_options = options
979979
_errorHandler = errorHandler

0 commit comments

Comments
 (0)