Changeset 429 for trunk/src/org/expeditee/gui/FrameIO.java
- Timestamp:
- 01/07/09 19:46:05 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameIO.java
r427 r429 930 930 e1.printStackTrace(); 931 931 } 932 // e.printStackTrace();932 // e.printStackTrace(); 933 933 } 934 934 935 935 if (nextnum > 0) { 936 936 original.setFrameset(oldFramesetName); … … 1177 1177 } 1178 1178 1179 return FrameIO.CreateFrameset(name, path); 1179 Frame newFrame = FrameIO.CreateFrameset(name, path); 1180 1181 if (newFrame == null) { 1182 // Cant create directories if the path is readonly or there is no 1183 // space available 1184 newFrame = FrameIO.CreateFrameset(name, FrameIO.FRAME_PATH); 1185 } 1186 1187 if (newFrame == null) { 1188 // TODO handle running out of disk space here 1189 } 1190 1191 return newFrame; 1180 1192 } 1181 1193 … … 1260 1272 File dir = new File(path + frameset.toLowerCase() + File.separator); 1261 1273 1262 dir.mkdirs(); 1274 // If the directory doesnt already exist then create it... 1275 if (!dir.exists()) { 1276 // If the directory couldnt be created, then there is something 1277 // wrong... ie. The disk is full. 1278 if (!dir.mkdirs()) { 1279 return null; 1280 } 1281 } 1263 1282 1264 1283 // create the new INF file
Note:
See TracChangeset
for help on using the changeset viewer.