Ignore:
Timestamp:
01/07/09 19:46:05 (15 years ago)
Author:
ra33
Message:

Fixed problems with ghost items being created when ranging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameIO.java

    r427 r429  
    930930                                                e1.printStackTrace();
    931931                                        }
    932                                         //e.printStackTrace();
     932                                        // e.printStackTrace();
    933933                                }
    934                                
     934
    935935                                if (nextnum > 0) {
    936936                                        original.setFrameset(oldFramesetName);
     
    11771177                }
    11781178
    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;
    11801192        }
    11811193
     
    12601272                File dir = new File(path + frameset.toLowerCase() + File.separator);
    12611273
    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                }
    12631282
    12641283                // create the new INF file
Note: See TracChangeset for help on using the changeset viewer.