public static List < String > getResources ( ) { File resources = new File ( STORAGE_PATH + File . separator + "/resources" ) ; File [ ] children = resources . listFiles ( ) ; if ( children == null ) { return new ArrayList < String > ( ) ; } List < String > storages = new ArrayList < String > ( ) ; for ( int i = 0 ; i < children . length ; i ++ ) { if ( children [ i ] . isDirectory ( ) ) storages . add ( children [ i ] . getName ( ) ) ; } return storages ; }
Retrieve a list of all storages .