Discuss , our SFTP/FTP/FTPS/SCP server for Windows. Secure, fast and customizable!

List file names

no avatar
User

Travis

List file names

by Travis » Thu Mar 23, 2006 7:27 am

Hi,
Commands like FTPClient.dirDetails("....", false), FTPClient.dir(), FTPClient.dir("...") doesnot fetch me the list of filenames. Permission denial exception.
However, if i user FTPClient.dirDetails("....", true) lists the entire detail which i am really not interested in.

I was able to login to IIS FTP server and view the files using this user. I dont really think there are any permissions missing for this user on the system.

suggestions appreciated.

Travis
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Thu Mar 23, 2006 10:25 am

Yes, this seems to be a bug in ProFTPD, which is basically what edtFTPD is. When you use dir("....", false) FTPClient issues an NLST command, which is supposed to return a list of file-names and nothing else. When you do this the server returns "450: Permission denied", which is incorrect. There's discussion on this problem on the proftpd mailing list - .

I suggest just using dirDetails("..."). The overhead is fairly small.

- Hans (EDT)

Who is online

Users browsing this forum: No registered users and 16 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron