Overview
| Comment: | OFFileManager: s/\(modification\)Time/\1Date/ |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
9c3423636fdba410cdeb05607cc6036a |
| User & Date: | js on 2017-08-05 21:50:06 |
| Other Links: | manifest | tags |
Context
|
2017-08-06
| ||
| 19:40 | OFZIPArchive: Add write and append support (check-in: 4594f434e7 user: js tags: trunk) | |
|
2017-08-05
| ||
| 21:50 | OFFileManager: s/\(modification\)Time/\1Date/ (check-in: 9c3423636f user: js tags: trunk) | |
| 21:43 | make tarball: Use ofzip to create tarball (check-in: a0b3632d8a user: js tags: trunk) | |
Changes
Modified src/OFFileManager.h from [72d3417f9d] to [1f6e451528].
| ︙ | ︙ | |||
128 129 130 131 132 133 134 | * @param path The path to the item whose last access time should be returned * * @return The last access time of the specified item */ - (OFDate *)accessTimeOfItemAtPath: (OFString *)path; /*! | | | | | | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | * @param path The path to the item whose last access time should be returned * * @return The last access time of the specified item */ - (OFDate *)accessTimeOfItemAtPath: (OFString *)path; /*! * @brief Returns the last modification date of the specified item. * * @param path The path to the item whose last modification date should be * returned * * @return The last modification date of the specified item */ - (OFDate *)modificationDateOfItemAtPath: (OFString *)path; /*! * @brief Returns the last status change time of the specified item. * * @param path The path to the item whose last status change time should be * returned * |
| ︙ | ︙ |
Modified src/OFFileManager.m from [f7096a9a7b] to [bd75067227].
| ︙ | ︙ | |||
686 687 688 689 690 691 692 | @throw [OFStatItemFailedException exceptionWithPath: path errNo: errno]; /* FIXME: We could be more precise on some OSes */ return [OFDate dateWithTimeIntervalSince1970: s.st_atime]; } | | | 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 |
@throw [OFStatItemFailedException exceptionWithPath: path
errNo: errno];
/* FIXME: We could be more precise on some OSes */
return [OFDate dateWithTimeIntervalSince1970: s.st_atime];
}
- (OFDate *)modificationDateOfItemAtPath: (OFString *)path
{
of_stat_t s;
if (path == nil)
@throw [OFInvalidArgumentException exception];
if (of_stat(path, &s) != 0)
|
| ︙ | ︙ |
Modified utils/ofzip/TarArchive.m from [4669023b91] to [ea98a01b6f].
| ︙ | ︙ | |||
452 453 454 455 456 457 458 | #ifdef OF_FILE_MANAGER_SUPPORTS_PERMISSIONS [entry setMode: [fileManager permissionsOfItemAtPath: fileName]]; #endif [entry setSize: [fileManager sizeOfFileAtPath: fileName]]; [entry setModificationDate: | | | 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 | #ifdef OF_FILE_MANAGER_SUPPORTS_PERMISSIONS [entry setMode: [fileManager permissionsOfItemAtPath: fileName]]; #endif [entry setSize: [fileManager sizeOfFileAtPath: fileName]]; [entry setModificationDate: [fileManager modificationDateOfItemAtPath: fileName]]; #ifdef OF_FILE_MANAGER_SUPPORTS_OWNER OFString *owner, *group; [fileManager getOwner: &owner group: &group ofItemAtPath: fileName]; [entry setOwner: owner]; |
| ︙ | ︙ |