Ignore:
Timestamp:
Apr 25, 2021, 10:37:28 AM (4 years ago)
Author:
chronos
Message:
  • Fixed: Predefined maps and example map was not initially copied to user config dir if .config didn't yet exist. This fixes mainly snap package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/Directories.pas

    r240 r379  
    6767  Src, Dst: TSearchRec;
    6868begin
    69   if not DirectoryExists(DestinationDir) then CreateDir(DestinationDir);
     69  if not DirectoryExists(DestinationDir) then ForceDirectories(DestinationDir);
    7070  if FindFirst(SourceDir + DirectorySeparator + Filter, $21, Src) = 0 then
    7171    repeat
     
    9191  else
    9292  begin
    93     if not DirectoryExists(AppDataDir) then CreateDir(AppDataDir);
     93    if not DirectoryExists(AppDataDir) then ForceDirectories(AppDataDir);
    9494    DataDir := AppDataDir;
    9595  end;
Note: See TracChangeset for help on using the changeset viewer.