@@ -38,34 +38,3 @@ index 712d9dee..2483c14e 100644
38
38
#elseif os(WASI)
39
39
import WASILibc
40
40
#elseif canImport(CRT)
41
- diff --git a/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift b/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
42
- index 9567f65..06f51b6 100644
43
- --- a/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
44
- +++ b/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
45
- @@ -986,14 +986,26 @@ enum _FileOperations {
46
- }
47
-
48
- // Copy modification date
49
- + #if canImport(Android)
50
- + let value = statInfo.st_mtim
51
- + #else
52
- let value = timeval(tv_sec: statInfo.st_mtim.tv_sec, tv_usec: statInfo.st_mtim.tv_nsec / 1000)
53
- + #endif
54
- var tv = (value, value)
55
- try withUnsafePointer(to: &tv) {
56
- + #if canImport(Android)
57
- + try $0.withMemoryRebound(to: timespec.self, capacity: 2) {
58
- + if futimens(dstFD, $0) != 0 {
59
- + try delegate.throwIfNecessary(errno, srcPath(), dstPath())
60
- + }
61
- + }
62
- + #else
63
- try $0.withMemoryRebound(to: timeval.self, capacity: 2) {
64
- if futimes(dstFD, $0) != 0 {
65
- try delegate.throwIfNecessary(errno, srcPath(), dstPath())
66
- }
67
- }
68
- + #endif
69
- }
70
-
71
- // Copy permissions
0 commit comments