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 02c0494 commit 8c67740Copy full SHA for 8c67740
Sources/FoundationEssentials/FileManager/FileManager+Directories.swift
@@ -516,7 +516,7 @@ extension _FileManagerImpl {
516
// Handle Windows NT object namespace prefix
517
// The \\?\ prefix is used by Windows NT for device paths and may appear
518
// in current working directory paths. We strip it to return a standard path.
519
- return cwd?.removingNTPathPrefix()
+ return cwd
520
#else
521
withUnsafeTemporaryAllocation(of: CChar.self, capacity: FileManager.MAX_PATH_SIZE) { buffer in
522
guard getcwd(buffer.baseAddress!, FileManager.MAX_PATH_SIZE) != nil else {
0 commit comments