DZone Forums
Go Back   DZone Forums > Community > Languages & Frameworks > Java
Reload this Page FTP private directory problems with org.apache.commons.net.ftp.FTP
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Sep 2008
Default FTP private directory problems with org.apache.commons.net.ftp.FTP - 09-13-2008, 02:03 PM

I'm trying to access a directory that is only visible when connected with determined user. How can I do this?
This is what's going on:
Code:
Code:
connect("ftp.e***a.intranet"); 
login("f***1","****");
These to methods return me true but when I try to change directory using changeWorkingDirectory(), passing the private directory it, returns me false as if it could not find it. I verify the current directory using printWorkingDirectory() and this is the one that is coming: "/VM/maqvm/fcpc". It seems it's just not recognizing private directories cause when I change to a public one it works fine. Why is this happening?

Any help would be appreciated.
Thanks.
Reply With Quote
  (#2 (permalink)) Old
Forum Leader
 
glennji's Avatar
 
Posts: 58
Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Feb 2008
Location: London
Send a message via MSN to glennji Send a message via Yahoo to glennji Send a message via Skype™ to glennji
Default 09-26-2008, 07:27 AM

You've tried connecting as the same user with a stand-alone FTP client, right?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
org.apache.jasper.JasperException: Unable to compile class for JSP: swasthik Eclipse 0 12-31-2008 12:37 AM
Deploying using JWS with EMF problems jjabson Zones 0 12-19-2008 07:24 PM
(commons-bean) howto print all bean properties path? edmund Java 0 12-15-2008 03:18 AM
Problems With Pdt Eclipse xakzona Eclipse 0 10-14-2008 05:26 AM
Eclipse RCP + Apache Derby jdbc driver robich.ge Eclipse 5 05-27-2008 09:14 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com