Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ extension _FileManagerImpl {
// Handle Windows NT object namespace prefix
// The \\?\ prefix is used by Windows NT for device paths and may appear
// in current working directory paths. We strip it to return a standard path.
return cwd?.removingNTPathPrefix()
return cwd
#else
withUnsafeTemporaryAllocation(of: CChar.self, capacity: FileManager.MAX_PATH_SIZE) { buffer in
guard getcwd(buffer.baseAddress!, FileManager.MAX_PATH_SIZE) != nil else {
Expand Down
Loading