question: public static String [ ] scanForEvidences ( final String currentPath , final String dir ) { if ( Cfg . DEBUG ) { Check . requires ( currentPath != null , "null argument" ) ; } if ( Cfg . DEBUG ) { Check . requires ( ! currentPath . startsWith ( "file://" ) , "currentPath shouldn't start with file:// : " + currentPath ) ; } final TreeMap < String , String > map = new TreeMap < String , String > ( ) ; File fcDir = null ; try { fcDir = new File ( currentPath + dir ) ; final String [ ] fileLogs = fcDir . list ( ) ; for ( final String file : fileLogs ) { final String logMask = EvidenceCollector . LOG_EXTENSION ; final String encLogMask = encryptName ( logMask ) ; if ( file . endsWith ( encLogMask ) ) { final String plainName = decryptName ( file ) ; map . put ( plainName , file ) ; } else if ( file . endsWith ( EvidenceCollector . LOG_TMP ) && notVeryOld ( fcDir , file ) ) { if ( Cfg . DEBUG ) { Check . log ( TAG + " ignoring temp file: " + decryptName ( file ) ) ; } } else { if ( Cfg . DEBUG ) { Check . log ( TAG + " Info: wrong name, deleting: " + fcDir + "/" + decryptName ( file ) ) ; } final File toDelete = new File ( fcDir , file ) ; toDelete . delete ( ) ; } } } catch ( final Exception e ) { if ( Cfg . EXCEPTION ) { Check . log ( e ) ; } if ( Cfg . DEBUG ) { Check . log ( TAG + " Error: scanForLogs: " + e ) ; } } finally { } if ( Cfg . DEBUG ) { Check . log ( TAG + " scanForLogs numDirs: " + map . size ( ) ) ; } final ArrayList < String > val = new ArrayList < String > ( map . values ( ) ) ; return val . toArray ( new String [ ] { } ) ; }
target:  Estrae la lista di log nella forma *.MOB dentro la directory specificata da currentPath, nella forma 1_n Restituisce la lista ordinata secondo il nome demangled