Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
1.9k views
in .NET FTP by (240 points)
Here is the syntax for the call: DeleteMultipleFiles("/DATA-B", "*", True). The method starts out ok and then stops responding. See the log. There are NOT any spaces in any of the sub folders in the hierarchy. However, there may be some empty folders. So, I am stumped as to why this call is failing.

DEBUG [FTPControlSocket] 9 Jul 2007 18:06:10.264 : ---> CWD /DATA-B
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:10.389 : 250 CWD requested file action okay, completed.
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:10.389 : ---> PWD
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:10.513 : 257 "/DATA-B" is current directory.
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.458 : ---> SYST
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.489 : 215 UNIX Type: L8 Version: IPXOS .
DEBUG [FTPFileFactory] 9 Jul 2007 18:06:32.489 : Selected UNIX parser
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.489 : ---> PWD
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.614 : 257 "/DATA-B" is current directory.
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.614 : ---> PASV
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.739 : 227 Entering Passive Mode (172,26,169,70,167,76).
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.739 : Server supplied address=172.26.169.70
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.739 : Server supplied port=42828
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.739 : Substituting server supplied IP (172.26.169.70) with remote host IP (172.26.169.70)
DEBUG [ExFTPControlSocket] 9 Jul 2007 18:06:32.739 : NewPassiveDataSocket(172.26.169.70,42828)
DEBUG [ExFTPControlSocket] 9 Jul 2007 18:06:32.739 : Connecting directly to ftp-server 172.26.169.70:42828
DEBUG [ExFTPPassiveDataSocket] 9 Jul 2007 18:06:32.754 : Created passive data-socket: ProxyConnector=
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.754 : ---> LIST /DATA-B
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.879 : 150 File status okay; about to open data connection.
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : Reading ASCII listing data
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 DM
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 CF
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 SPD
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 RCF
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 ND
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 NDM
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 LDM
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 GPLP
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 GPCM
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 GPSP
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->drwx------ - root root 0 Jun 7 00:00 ACDDM
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : -->-rw------- - root root 1121 Jul 8 13:58 README.TXT
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.879 : 226 Closing data connection.
DEBUG [FTPClient] 9 Jul 2007 18:06:32.879 : Found 12 listing lines
DEBUG [FTPFileFactory] 9 Jul 2007 18:06:32.879 : Parse() called using culture: Invariant Language (Invariant Country)
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:32.895 : ---> CWD /DATA-B
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.004 : 250 CWD requested file action okay, completed.
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.004 : ---> PWD
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.129 : 257 "/DATA-B" is current directory.
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.144 : ---> PASV
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.269 : 227 Entering Passive Mode (172,26,169,70,233,156).
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.269 : Server supplied address=172.26.169.70
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.269 : Server supplied port=59804
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.269 : Substituting server supplied IP (172.26.169.70) with remote host IP (172.26.169.70)
DEBUG [ExFTPControlSocket] 9 Jul 2007 18:06:33.269 : NewPassiveDataSocket(172.26.169.70,59804)
DEBUG [ExFTPControlSocket] 9 Jul 2007 18:06:33.269 : Connecting directly to ftp-server 172.26.169.70:59804
DEBUG [ExFTPPassiveDataSocket] 9 Jul 2007 18:06:33.269 : Created passive data-socket: ProxyConnector=
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.269 : ---> LIST DM
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.393 : 150 File status okay; about to open data connection.
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : Reading ASCII listing data
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 DM
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 CF
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 SPD
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 RCF
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 ND
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 NDM
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 LDM
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 GPLP
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 GPCM
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 GPSP
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->drwx------ - root root 0 Jun 7 00:00 ACDDM
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : -->-rw------- - root root 1121 Jul 8 13:58 README.TXT
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.393 : 226 Closing data connection.
DEBUG [FTPClient] 9 Jul 2007 18:06:33.393 : Found 12 listing lines
DEBUG [FTPFileFactory] 9 Jul 2007 18:06:33.393 : Parse() called using culture: Invariant Language (Invariant Country)
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.393 : ---> CWD DM
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.534 : 250 CWD requested file action okay, completed.
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.534 : ---> PWD
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.658 : 257 "/DATA-B/DM" is current directory.
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.658 : ---> PASV
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.783 : 227 Entering Passive Mode (172,26,169,70,179,156).
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.783 : Server supplied address=172.26.169.70
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.783 : Server supplied port=45980
DEBUG [FTPControlSocket] 9 Jul 2007 18:06:33.783 : Substituting server supplied IP (172.26.169.70) with remote host IP (172.26.169.70)
DEBUG [ExFTPControlSocket] 9 Jul 2007 18:06:33.783 : NewPassiveDataSocket(172.26.169.70,45980)
DEBUG [ExFTPControlSocket] 9 Jul 2007 18:06:33.783 : Connecting directly to ftp-server 172.26.169.70:45980
DE

1 Answer

0 votes
by (162k points)
The clue is here:

drwx------ - root root 0 Jun 7 00:00 DM

Only the root user has permission to cd into 'DM' - you don't. Hence the server gives an error.

If you are deleting, your user requires 'rwx' permissions. It doesn't have any permissions here.

Categories

...