Changeset 530


Ignore:
Timestamp:
11/08/09 13:31:40 (2 years ago)
Author:
octorian
Message:

Minor fix for creating local cache directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LogicMail/src/org/logicprobe/LogicMail/model/MailFileManager.java

    r529 r530  
    9292         */ 
    9393        void refreshConfiguration() { 
    94                 String newCacheUrl = mailSettings.getGlobalConfig().getLocalDataLocation() + CACHE_PREFIX; 
     94                String localDataLocation = mailSettings.getGlobalConfig().getLocalDataLocation(); 
     95                String newCacheUrl = localDataLocation + CACHE_PREFIX; 
    9596                if(!newCacheUrl.equals(cacheUrl)) { 
    9697                        FileConnection fileConnection; 
    9798                        try { 
     99                                fileConnection = (FileConnection)Connector.open(localDataLocation); 
     100                                if(!fileConnection.exists()) { 
     101                                        fileConnection.mkdir(); 
     102                                } 
     103                                fileConnection.close(); 
     104                                 
    98105                                fileConnection = (FileConnection)Connector.open(newCacheUrl); 
    99106                                if(!fileConnection.exists()) { 
Note: See TracChangeset for help on using the changeset viewer.