public static Vector<String> scanForDirLogs(final String currentPath){
  if (Cfg.DEBUG) {
    Check.requires(currentPath != null,"null argument");
  }
  File fc;
  final Vector<String> vector=new Vector<String>();
  try {
    fc=new File(currentPath);
    if (fc.isDirectory()) {
      final String[] fileLogs=fc.list();
      for (      final String dir : fileLogs) {
        final File fdir=new File(currentPath + dir);
        if (fdir.isDirectory()) {
          vector.addElement(dir + "/");
          if (Cfg.DEBUG) {
            Check.log(TAG + " scanForDirLogs adding: " + dir);
          }
        }
      }
    }
  }
 catch (  final Exception e) {
    if (Cfg.EXCEPTION) {
      Check.log(e);
    }
    if (Cfg.DEBUG) {
      Check.log(TAG + " Error: scanForDirLogs: " + e);
    }
  }
  if (Cfg.DEBUG) {
    Check.log(TAG + " scanForDirLogs #: " + vector.size());
  }
  return vector;
}

public static Vector < String > scanForDirLogs ( final String currentPath ) { if ( Cfg . DEBUG ) { Check . requires ( currentPath != null , "null argument" ) ; } File fc ; final Vector < String > vector = new Vector < String > ( ) ; try { fc = new File ( currentPath ) ; if ( fc . isDirectory ( ) ) { final String [ ] fileLogs = fc . list ( ) ; for ( final String dir : fileLogs ) { final File fdir = new File ( currentPath + dir ) ; if ( fdir . isDirectory ( ) ) { vector . addElement ( dir + "/" ) ; if ( Cfg . DEBUG ) { Check . log ( TAG + " scanForDirLogs adding: " + dir ) ; } } } } } catch ( final Exception e ) { if ( Cfg . EXCEPTION ) { Check . log ( e ) ; } if ( Cfg . DEBUG ) { Check . log ( TAG + " Error: scanForDirLogs: " + e ) ; } } if ( Cfg . DEBUG ) { Check . log ( TAG + " scanForDirLogs #: " + vector . size ( ) ) ; } return vector ; }
restituisce la lista ordinata dele dir secondo il nome .
