public List < GitFileSystemObject > getChildren ( ) throws IOException , JavaGitException { List < GitFileSystemObject > children = new ArrayList < GitFileSystemObject > ( ) ; // get all of the file system objects currently located under this directory for ( File memberFile : file . listFiles ( ) ) { // check if this file is hidden also some times the .git and //other unix hidden directories are not hidden in Windows if ( memberFile . isHidden ( ) || memberFile . getName ( ) . startsWith ( "." ) ) { // ignore (could be .git directory) continue ; } // now, just check for the type of the filesystem object if ( memberFile . isDirectory ( ) ) { children . add ( new GitDirectory ( memberFile , workingTree ) ) ; } else { children . add ( new GitFile ( memberFile , workingTree ) ) ; } } return children ; }
Gets the children of this directory .