MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / SetCloseFileTime

Method SetCloseFileTime

Libraries/unrar/file.cpp:622–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620
621
622void 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
636void File::SetCloseFileTimeByName(const wchar *Name,RarTime *ftm,RarTime *fta)

Callers 1

ExtractCurrentFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected