diff --git a/Sources/FoundationEssentials/FileManager/FileOperations.swift b/Sources/FoundationEssentials/FileManager/FileOperations.swift index 9136123cc..418f5cfb1 100644 --- a/Sources/FoundationEssentials/FileManager/FileOperations.swift +++ b/Sources/FoundationEssentials/FileManager/FileOperations.swift @@ -995,7 +995,7 @@ enum _FileOperations { } // Copy permissions - if fchmod(dstFD, statInfo.st_mode) != 0 { + if fchmod(dstFD, mode_t(statInfo.st_mode)) != 0 { try delegate.throwIfNecessary(errno, srcPath(), dstPath()) } } else {