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 12f12c4 commit 0a619c3Copy full SHA for 0a619c3
Foundation/FileManager.swift
@@ -300,7 +300,7 @@ open class FileManager : NSObject {
300
301
try _contentsOfDir(atPath: path, { (entryName, entryType) throws in
302
contents.append(entryName)
303
- if entryType == Int32(DT_DIR) {
+ if entryType == DT_DIR {
304
let subPath: String = path + "/" + entryName
305
let entries = try subpathsOfDirectory(atPath: subPath)
306
contents.append(contentsOf: entries.map({file in "\(entryName)/\(file)"}))
0 commit comments