mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 15:14:59 -06:00
18.01
This commit is contained in:
@@ -667,12 +667,27 @@ bool CTempFile::Remove()
|
||||
|
||||
bool CTempFile::MoveTo(CFSTR name, bool deleteDestBefore)
|
||||
{
|
||||
// DWORD attrib = 0;
|
||||
if (deleteDestBefore)
|
||||
{
|
||||
if (NFind::DoesFileExist(name))
|
||||
{
|
||||
// attrib = NFind::GetFileAttrib(name);
|
||||
if (!DeleteFileAlways(name))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
DisableDeleting();
|
||||
return MyMoveFile(_path, name);
|
||||
|
||||
/*
|
||||
if (attrib != INVALID_FILE_ATTRIBUTES && (attrib & FILE_ATTRIBUTE_READONLY))
|
||||
{
|
||||
DWORD attrib2 = NFind::GetFileAttrib(name);
|
||||
if (attrib2 != INVALID_FILE_ATTRIBUTES)
|
||||
SetFileAttrib(name, attrib2 | FILE_ATTRIBUTE_READONLY);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
bool CTempDir::Create(CFSTR prefix)
|
||||
|
||||
Reference in New Issue
Block a user