swift-foundation icon indicating copy to clipboard operation
swift-foundation copied to clipboard

FileManager should use utimensat instead of utimes

Open jakepetroules opened this issue 7 months ago • 1 comments

utimensat has nanosecond precision, while utimes only has microsecond precision. At least APFS should be able to take advantage of the elevated precision.

jakepetroules avatar Apr 21 '25 22:04 jakepetroules

Reopening as the change was reverted in https://github.com/swiftlang/swift-foundation/pull/1379. This ability is blocked on the ability for Date to represent times with nanosecond precision since this FileManager API uses Date as the currency type

jmschonfeld avatar Jun 26 '25 20:06 jmschonfeld