Changeset 131 for oup/current/Helper


Ignore:
Timestamp:
Mar 28, 2007, 3:20:26 AM (18 years ago)
Author:
alloc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Helper/LevelDB.pas

    r130 r131  
    152152        ShowMessage('Couldn''t delete file. Aborting');
    153153        Exit;
    154       end else if not DeleteFile(AnsiReplaceStr(Target, '.dat', '.raw')) then
    155       begin
    156         ShowMessage('Couldn''t delete file. Aborting');
    157         Exit;
    158       end else if Connection.DataOS in [DOS_WINDEMO, DOS_MAC, DOS_MACBETA] then
    159       begin
    160         if not DeleteFile(AnsiReplaceStr(Target, '.dat', '.sep')) then
     154      end;
     155      if FileExists(AnsiReplaceStr(Target, '.dat', '.raw')) then
     156        if not DeleteFile(AnsiReplaceStr(Target, '.dat', '.raw')) then
    161157        begin
    162158          ShowMessage('Couldn''t delete file. Aborting');
    163159          Exit;
    164160        end;
    165       end;
     161      if FileExists(AnsiReplaceStr(Target, '.dat', '.sep')) then
     162        if Connection.DataOS in [DOS_WINDEMO, DOS_MAC, DOS_MACBETA] then
     163          if not DeleteFile(AnsiReplaceStr(Target, '.dat', '.sep')) then
     164          begin
     165            ShowMessage('Couldn''t delete file. Aborting');
     166            Exit;
     167          end;
    166168    end else begin
    167169      ShowMessage('Aborting');
Note: See TracChangeset for help on using the changeset viewer.