public static synchronized void moveLogsFromLegacyDirIfNecessary(){
  File sdcardDir=Environment.getExternalStorageDirectory();
  File legacyDir=new File(sdcardDir,LEGACY_SAVED_LOGS_DIR);
  if (legacyDir.exists() && legacyDir.isDirectory()) {
    File savedLogsDir=getSavedLogsDirectory();
    for (    File file : legacyDir.listFiles()) {
      file.renameTo(new File(savedLogsDir,file.getName()));
    }
    legacyDir.delete();
  }
}

public static synchronized void moveLogsFromLegacyDirIfNecessary ( ) { File sdcardDir = Environment . getExternalStorageDirectory ( ) ; File legacyDir = new File ( sdcardDir , LEGACY_SAVED_LOGS_DIR ) ; if ( legacyDir . exists ( ) && legacyDir . isDirectory ( ) ) { File savedLogsDir = getSavedLogsDirectory ( ) ; for ( File file : legacyDir . listFiles ( ) ) { file . renameTo ( new File ( savedLogsDir , file . getName ( ) ) ) ; } legacyDir . delete ( ) ; } }
i used to save logs to / sdcard / catlog_saved_logs . now it ' s / sdcard / catlog / saved_logs . move any files that need to be moved to the new directory .
