mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Overwrite read only files
This commit is contained in:
parent
c88b64be28
commit
ebf96d06c5
1 changed files with 8 additions and 2 deletions
|
|
@ -1344,8 +1344,14 @@ var
|
|||
Exit(fsoterSkip);
|
||||
fsoofeOverwrite:
|
||||
begin
|
||||
mbDeleteFile(AbsoluteTargetFileName);
|
||||
Exit(fsoterDeleted);
|
||||
if FileIsReadOnly(Attrs) then
|
||||
mbFileSetReadOnly(AbsoluteTargetFileName, False);
|
||||
if FPS_ISLNK(Attrs) or (FMode = fsohmMove) then
|
||||
begin
|
||||
mbDeleteFile(AbsoluteTargetFileName);
|
||||
Exit(fsoterDeleted);
|
||||
end;
|
||||
Exit(fsoterNotExists);
|
||||
end;
|
||||
fsoofeAppend:
|
||||
begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue