Changeset 140

Show
Ignore:
Timestamp:
02/06/07 12:59:41 (2 years ago)
Author:
jlee
Message:

Create configuration directory

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/org/thestaticvoid/iriverter/ConverterOptions.java

    r133 r140  
    3131                else 
    3232                        CONF_DIR = new File(System.getProperty("user.home") + File.separator + ".iriverter"); 
     33 
     34                try { 
     35                        if (!CONF_DIR.exists()) 
     36                                CONF_DIR.mkdirs(); 
     37                } catch (Exception e) { 
     38                        System.err.println("Could not create " + CONF_DIR); 
     39                        System.exit(1); 
     40                } 
    3341        } 
    3442        public static final File CONF_FILE = new File(CONF_DIR + File.separator + "conf");