Changeset 11081


Ignore:
Timestamp:
2006-01-23T13:30:25+13:00 (18 years ago)
Author:
mdewsnip
Message:

Added new DELETE_EMPTY_DIRECTORY job type, as part of the FileQueue rewrite.

File:
1 edited

Legend:

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

    r11078 r11081  
    5959    /** An element of the job type enumeration indicating a new folder action. */
    6060    static final public byte NEW_FOLDER = 4;
     61    /** An element of the job type enumeration indicating an empty folder delete action. */
     62    static final public byte DELETE_EMPTY_DIRECTORY = 5;
    6163
    6264    /** Constructor.
     
    134136        text.append("move ");
    135137        break;
     138    case DELETE_EMPTY_DIRECTORY:
     139        text.append("empty directory delete ");
     140        break;
    136141    default:
    137142        text.append("unknown ");
     
    144149        text.append("ERROR!");
    145150    }
    146     if (type != DELETE) {
     151    if (type != DELETE && type != DELETE_EMPTY_DIRECTORY) {
    147152        text.append(" -> ");
    148153        FileNode destination = getDestination();
Note: See TracChangeset for help on using the changeset viewer.