Changeset 10626


Ignore:
Timestamp:
2005-09-23T11:03:02+12:00 (19 years ago)
Author:
kjdon
Message:

show a message if a file can't be deleted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java

    r10479 r10626  
    494494
    495495                // Delete the source file
    496                 Utility.delete(source_file);
     496                if (!Utility.delete(source_file)) {
     497                // Show message that we couldn't delete
     498                JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.File_Not_Deleted_Message", source_file.getName()), Dictionary.get("FileActions.File_Not_Deleted_Title"), JOptionPane.ERROR_MESSAGE);
     499                }
    497500            }
    498501            // Else the source is a directory and it has children remaining
Note: See TracChangeset for help on using the changeset viewer.