Skip to content

Commit

Permalink
Update Sources/FoundationEssentials/FileManager/FileManager+Basics.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Schonfeld <[email protected]>
  • Loading branch information
compnerd and jmschonfeld committed Apr 26, 2024
1 parent 2531880 commit 60c117d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ internal struct _FileManagerImpl {

if fbiLHS.FileAttributes & FILE_ATTRIBUTE_REPARSE_POINT == FILE_ATTRIBUTE_REPARSE_POINT,
fbiRHS.FileAttributes & FILE_ATTRIBUTE_REPARSE_POINT == FILE_ATTRIBUTE_REPARSE_POINT {
return (try? destinationOfSymbolicLink(atPath: path) == destinationOfSymbolicLink(atPath: other)) ?? false
return (try? fileManager.destinationOfSymbolicLink(atPath: path) == fileManager.destinationOfSymbolicLink(atPath: other)) ?? false
} else if fbiLHS.FileAttributes & FILE_ATTRIBUTE_DIRECTORY == FILE_ATTRIBUTE_DIRECTORY,
fbiRHS.FileAttributes & FILE_ATTRIBUTE_DIRECTORY == FILE_ATTRIBUTE_DIRECTORY {
// We immediately convert the contents to a set to allow us
Expand Down

0 comments on commit 60c117d

Please sign in to comment.