Differences From Artifact [8f66089176]:
- File
src/OFFileURLHandler.m
— part of check-in
[1fedd3e87a]
at
2020-06-01 18:24:26
on branch set-mtime
— OFFileURLHandler: Weakly link _wutime64
This also adds a fallback to _wutime if _wutime64 is unavailable. (user: js, size: 35221) [annotate] [blame] [check-ins using]
To Artifact [89f5c5d688]:
- File src/OFFileURLHandler.m — part of check-in [cf233b2d5b] at 2020-06-01 18:46:04 on branch set-mtime — OFFileURLHandler: Support setting mtime on Win98 (user: js, size: 35389) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
632 633 634 635 636 637 638 639 | errNo: errno]; } } else { struct _utimbuf times = { (time_t)timeInterval, (time_t)timeInterval }; | > > | > > > > > > | 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 | errNo: errno]; } } else { struct _utimbuf times = { (time_t)timeInterval, (time_t)timeInterval }; int status; if ([OFSystemInfo isWindowsNT]) status = _wutime([path UTF16String], ×); else status = _utime( [path cStringWithEncoding: [OFLocale encoding]], ×); if (status != 0) { of_file_attribute_key_t failedAttribute = of_file_attribute_key_modification_date; @throw [OFSetItemAttributesFailedException exceptionWithURL: URL attributes: attributes failedAttribute: failedAttribute |
︙ | ︙ |