mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Move configuration files when directory already exists
This commit is contained in:
parent
b4ad423371
commit
1c562093ed
1 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,8 @@ begin
|
|||
// Move settings from executable directory to 'settings' subdirectory
|
||||
if mbFileExists(gpExePath + 'doublecmd.inf') then
|
||||
begin
|
||||
if mbCreateDir(ExcludeTrailingBackslash(gpGlobalCfgDir)) then
|
||||
AFileName:= ExcludeTrailingBackslash(gpGlobalCfgDir);
|
||||
if mbDirectoryExists(AFileName) or mbCreateDir(AFileName) then
|
||||
begin
|
||||
AList:= FindAllFiles(gpExePath, '*.cache;*.cfg;*.err;*.json;*.inf;*.ini;*.scf;*.txt;*.xml');
|
||||
for Index:= 0 to AList.Count - 1 do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue