From 5f40cce853e4a2a6f6631aaef8bed0005343c510 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 7 Aug 2024 08:50:27 -0700 Subject: [PATCH] Update Sources/Foundation/FileManager+POSIX.swift --- Sources/Foundation/FileManager+POSIX.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Foundation/FileManager+POSIX.swift b/Sources/Foundation/FileManager+POSIX.swift index 72368ee5e3..89bc95b101 100644 --- a/Sources/Foundation/FileManager+POSIX.swift +++ b/Sources/Foundation/FileManager+POSIX.swift @@ -408,7 +408,7 @@ extension FileManager { case FTS_D: let (showFile, skipDescendants) = match(filename: filename, to: _options, isDir: true) if skipDescendants { - fts_set(stream, _current!, FTS_SKIP) + fts_set(stream, current, FTS_SKIP) } if showFile { return URL(fileURLWithPath: filename, isDirectory: true)