| 620 | |
| 621 | |
| 622 | void File::SetCloseFileTime(RarTime *ftm,RarTime *fta) |
| 623 | { |
| 624 | // Android APP_PLATFORM := android-14 does not support futimens and futimes. |
| 625 | // Newer platforms support futimens, but fail on Android 4.2. |
| 626 | // We have to use utime for Android. |
| 627 | // Also we noticed futimens fail to set timestamps on NTFS partition |
| 628 | // mounted to virtual Linux x86 machine, but utimensat worked correctly. |
| 629 | // So we set timestamps for already closed files in Unix. |
| 630 | #ifdef _UNIX |
| 631 | SetCloseFileTimeByName(FileName,ftm,fta); |
| 632 | #endif |
| 633 | } |
| 634 | |
| 635 | |
| 636 | void File::SetCloseFileTimeByName(const wchar *Name,RarTime *ftm,RarTime *fta) |