DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34499>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34499 Summary: Exception on getting childrens from a hidden ftp directory Product: Commons Version: 1.0 Alpha Platform: PC OS/Version: Windows 2000 Status: NEW Severity: normal Priority: P3 Component: Sandbox AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] I'm using commons-vfs (commons-vfs-1.0-dev.jar, build from 2005/01/23) in a project to abstract the protocols FTP and SFTP for transfer/delete of files from a remote Windows 2000 Server host. This works all fine except for one case which I think is a bug. The problem occurs when the used protocol is FTP, and the remote FTP-directory provided by a "Microsoft FTP Service (Version 4.0)" is configured as a hidden directory. Then it is correctly possible to transfer files: ------------------------------------------------------------ FileObject src = fsMgr.resolveFile(baseFile, fileName); FileObject dest = fsMgr.resolveFile(outputFileName); try { FileUtil.copyContent(src, dest); } catch (FileSystemException ex) { // do something } ------------------------------------------------------------ But when I'm trying to delete files from the same remote FTP-directory with the following piece of code, an exception will be thrown. ------------------------------------------------------------ try { baseFile = fsMgr.resolveFile(baseFileUri, fsOpts); fileList = baseFile.getChildren(); } catch (FileSystemException ex) { // do something } ------------------------------------------------------------ ------------------------------------------------------------ org.apache.commons.vfs.FileSystemException: Could not list the contents of "ftp://user:[EMAIL PROTECTED]/HIDDENDIR" because it is not a folder. at org.apache.commons.vfs.provider.AbstractFileObject.getChildren (AbstractFileObject.java:519) <...rest of stacktrace is related to own project classes...> ------------------------------------------------------------ I think the problem is, that the "AbstractFileObject.getChildren" method of Commons-VFS doesn't work correctly with hidden directories, when the used protocol is FTP. But perhaps, the problem is instead located in the used FTP- libraries from Commons-Net (commons-net-1.3.0.jar, build from 2004/12/14). The problem has disappeared, after the configuration of the FTP-directory on the remote host has been changed to "not hidden". Note: Used runtime environment is J2SDK 1.4.2_06 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]