Changeset 1272 for trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDcorrectHTMLLogDirs.java
- Timestamp:
- 07/25/13 15:27:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDcorrectHTMLLogDirs.java
r1235 r1272 127 127 !file.getAbsolutePath().equals(destination.getAbsolutePath())) 128 128 { 129 file.renameTo(destination); 130 131 Console.println("moved " + file + " to " + destination); 132 133 if ((file.getParentFile().list() == null) || 134 (file.getParentFile().list().length == 0)) 135 { 136 file.getParentFile().delete(); 137 Console.println("removed directory " + file.getParentFile()); 129 if (file.renameTo(destination)) { 130 Console.println("moved " + file + " to " + destination); 131 132 if ((file.getParentFile().list() == null) || 133 (file.getParentFile().list().length == 0)) 134 { 135 if (file.getParentFile().delete()) { 136 Console.println("removed directory " + file.getParentFile()); 137 } 138 else { 139 Console.println 140 ("could not remove directory " + file.getParentFile()); 141 } 142 } 143 } 144 else { 145 Console.println("could not move " + file + " to " + destination); 138 146 } 139 147 }
Note: See TracChangeset
for help on using the changeset viewer.