mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-11 10:07:11 -06:00
feat: do not set time for sole folder in extraction
This commit is contained in:
@@ -270,7 +270,8 @@ CArchiveExtractCallback::CArchiveExtractCallback():
|
||||
Write_CTime(true),
|
||||
Write_ATime(true),
|
||||
Write_MTime(true),
|
||||
_multiArchives(false)
|
||||
_multiArchives(false),
|
||||
SoleFolderIndex(-1LL)
|
||||
{
|
||||
LocalProgressSpec = new CLocalProgress();
|
||||
_localProgress = LocalProgressSpec;
|
||||
@@ -371,6 +372,8 @@ void CArchiveExtractCallback::Init(
|
||||
NDir::MyGetFullPathName(directoryPath, _dirPathPrefix_Full);
|
||||
NName::NormalizeDirPathPrefix(_dirPathPrefix_Full);
|
||||
}
|
||||
|
||||
SoleFolderIndex = -1LL;
|
||||
}
|
||||
|
||||
|
||||
@@ -1125,7 +1128,7 @@ void CArchiveExtractCallback::CreateFolders()
|
||||
CDirPathTime pt;
|
||||
GetFiTimesCAM(pt);
|
||||
|
||||
if (pt.IsSomeTimeDefined())
|
||||
if (pt.IsSomeTimeDefined() && _index != SoleFolderIndex)
|
||||
{
|
||||
pt.Path = fullPathNew;
|
||||
pt.SetDirTime();
|
||||
|
||||
Reference in New Issue
Block a user