Package org.uberfire.java.nio.file

Examples of org.uberfire.java.nio.file.NotDirectoryException


            throws NotDirectoryException, IOException, SecurityException {
        checkNotNull( "filter", filter );
        final File file = checkNotNull( "dir", dir ).toFile();

        if ( !file.isDirectory() ) {
            throw new NotDirectoryException( dir.toString() );
        }
        final File[] content = file.listFiles();

        if ( content == null ) {
            throw new NotDirectoryException( dir.toString() );
        }

        return new DirectoryStream<Path>() {
            boolean isClosed = false;
View Full Code Here


        final JGitPathImpl gPath = toPathImpl( path );

        final Pair<PathType, ObjectId> result = checkPath( gPath.getFileSystem().gitRepo(), gPath.getRefTree(), gPath.getPath() );

        if ( !result.getK1().equals( PathType.DIRECTORY ) ) {
            throw new NotDirectoryException( path.toString() );
        }

        final List<JGitPathInfo> pathContent = listPathContent( gPath.getFileSystem().gitRepo(), gPath.getRefTree(), gPath.getPath() );

        return new DirectoryStream<Path>() {
View Full Code Here

TOP

Related Classes of org.uberfire.java.nio.file.NotDirectoryException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.