commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36962] - [vfs] Cannot used base root with FTP
Date Thu, 13 Oct 2005 19:38:53 GMT
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=36962>.
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=36962


mario@ops.co.at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From mario@ops.co.at  2005-10-13 21:38 -------
Sorry, I didnt fully understand this problem.

I tried the following code:

final FileObject foRoot = VFS.getManager().resolveFile("ftp://ftpserver/", opts);
final FileObject foIN = VFS.getManager().resolveFile("ftp://ftpserver/etc", opts);
System.err.println(foRoot + " " + System.identityHashCode(foRoot));
System.err.println(foIN + " " + System.identityHashCode(foIN));
System.err.println(foIN.getParent() + " " +
System.identityHashCode(foIN.getParent()));
System.err.println(foIN.getFileSystem().getRoot() + " " +
System.identityHashCode(foIN.getFileSystem().getRoot()));
System.err.println(foIN.getFileSystem().getRoot() == foRoot);

and the identity hash code is perfectly valid. Also the last check shows VFS
returns the same objects.

Also I dont know how this is related to your first sentence.
What happens if you create a file/folder?

Do you use VFS.getManager() or do you setup some sort of FileChache?

Thanks!

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message