commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VFS-566) No file returned when using findFiles on a directory in HTTP
Date Tue, 24 Mar 2015 11:21:53 GMT

    [ https://issues.apache.org/jira/browse/VFS-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14377711#comment-14377711
] 

Bernd Eckenfels commented on VFS-566:
-------------------------------------

The HTTP and URL providers do not provide the ability to list directories because there is
no HTTP protocol way to do this. If your server supports WebDAV you can use the provider,
it would use PROPFIND to list the children.

Probably it would be a good idea to actually have a capability and fail the list operation
if it is not present.

> No file returned when using findFiles on a directory in HTTP
> ------------------------------------------------------------
>
>                 Key: VFS-566
>                 URL: https://issues.apache.org/jira/browse/VFS-566
>             Project: Commons VFS
>          Issue Type: Wish
>    Affects Versions: 2.0
>            Reporter: Giuseppe Lio
>            Priority: Minor
>
> I am trying to list the content of a folder with HTTP doing something like:
> FileObject remoteFolderObj = fsManager.resolveFile("http://lio:18080/test/");
> FileObject[] files = remoteFolderObj.findFiles(allFileSelector);
> where allFileSelector is a FileSelector which returns all the file.
> Doing this findFiles method returns no file even if there are files in the folder.
> When I go to:
> http://lio:18080/test/
> using a browser I can see the list of the files in the folder.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message