commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ivankovits (JIRA)" <>
Subject [jira] Closed: (VFS-79) Cannot list children of HTTP folders
Date Thu, 17 Aug 2006 07:20:14 GMT
     [ ]

Mario Ivankovits closed VFS-79.

    Resolution: Won't Fix

Yep, unhappily the http filesystem do not support the getChildren method.

System.err.println("can list children=" + f.getFileSystem().hasCapability(Capability.LIST_CHILDREN));

Some people already asked about this feature and maybe also started to implement it, but not
patch has been submitted yet. The problem is, that its not necessarily easy to parse the html

> Cannot list children of HTTP folders
> ------------------------------------
>                 Key: VFS-79
>                 URL:
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>         Environment: Java 1.5
>            Reporter: Ben Ashpole
> The following code produces the below exception at f.getChildren(), even though the specified
location is a folder with children.  Similar problems exist for other protocol supported by
>         FileSystemManager fsManager = VFS.getManager();
>         final FileObject f = fsManager.resolveFile(
>             "");
>         FileObject[] children = f.getChildren();
> Exception in thread "main" org.apache.commons.vfs.FileSystemException: Could not list
the contents of "" because
it is not a folder.
> 	at org.apache.commons.vfs.provider.AbstractFileObject.getChildren(
> 	at com.bashpole.reflectorGadget.reflectionGroup.Sync.test(

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message