question: 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 ( ) ; } }
target:  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.