public boolean directoryContainsFiles ( File fileDir ) { boolean containsFiles = false ; File [ ] files = fileDir . listFiles ( ) ; if ( files != null ) { for ( File file : files ) { if ( ! file . isDirectory ( ) ) containsFiles = true ; } } return containsFiles ; }
Get the projectID if this directory has any files in it . Otherwise return 0 meaning I don t have to specify this package .