src/java/fr/jayasoft/ivy/repository/vfs/VfsRepository.java
/**
	 * Return a listing of the contents of a parent directory. Listing is a set
	 * of strings representing VFS URIs.
	 * 
	 * @param vfsURI providing identifying a VFS provided resource
	 * @throws IOException on failure.
	 * @see "Supported File Systems in the jakarta-commons-vfs documentation"
	 */
Return a listing of the contents of a parent directory. Listing is a set
of strings representing VFS URIs.

@param vfsURI providing identifying a VFS provided resource
@throws IOException on failure.
@see "Supported File Systems in the jakarta-commons-vfs documentation"
Return a listing of the contents of a parent directory . Listing is a set of strings representing VFS URIs . @param vfsURI providing identifying a VFS provided resource @throws IOException on failure . @see " Supported File Systems in the jakarta - commons - vfs documentation "
public List list(String vfsURI) throws IOException {
        ArrayList list = new ArrayList();
        Message.debug("list called for URI" + vfsURI);
        FileObject resourceImpl = getVFSManager().resolveFile(vfsURI);
        Message.debug("resourceImpl=" + resourceImpl.toString());
        Message.debug("resourceImpl.exists()" + resourceImpl.exists());
        Message.debug("resourceImpl.getType()" + resourceImpl.getType());
        Message.debug("FileType.FOLDER" + FileType.FOLDER);
        if ((resourceImpl != null) && resourceImpl.exists() && (resourceImpl.getType() == FileType.FOLDER)) {
            FileObject[] children = resourceImpl.getChildren();
            for (int i = 0; i < children.length; i++) {
                FileObject child = children[i];
                Message.debug("child " + i + child.getName().getURI());
                list.add(VfsResource.normalize(child.getName().getURI()));
            }
        }
        return list;
    }
public List list ( String vfsURI ) throws IOException { ArrayList list = new ArrayList ( ) ; Message . debug ( "list called for URI" + vfsURI ) ; FileObject resourceImpl = getVFSManager ( ) . resolveFile ( vfsURI ) ; Message . debug ( "resourceImpl=" + resourceImpl . toString ( ) ) ; Message . debug ( "resourceImpl.exists()" + resourceImpl . exists ( ) ) ; Message . debug ( "resourceImpl.getType()" + resourceImpl . getType ( ) ) ; Message . debug ( "FileType.FOLDER" + FileType . FOLDER ) ; if ( ( resourceImpl != null ) && resourceImpl . exists ( ) && ( resourceImpl . getType ( ) == FileType . FOLDER ) ) { FileObject [ ] children = resourceImpl . getChildren ( ) ; for ( int i = 0 ; i < children . length ; i ++ ) { FileObject child = children [ i ] ; Message . debug ( "child " + i + child . getName ( ) . getURI ( ) ) ; list . add ( VfsResource . normalize ( child . getName ( ) . getURI ( ) ) ) ; } } return list ; }
Return a listing of the contents of a parent directory.
Return a listing of the contents of a parent directory .