Yes, getting directory listings require a data port, just like when transferring files. That's why you can't get listings sometimes if you have a wrong passive setting in your FTP client, even though you're able to connect. In the PORT mode the data connection is made from the server to the client (usually get blocked by your router nowadays) and in the PASV mode the connection is made from the client to the server. Anyway, it indeed gets complicated to handle these on your own.
Is it possible to delete a file via FTP?
Re: Is it possible to delete a file via FTP?
Re: Is it possible to delete a file via FTP?
Thank you, that works for me.
Your script was almost ready to run, just needed to add "/" to the ftp adress to make it work.
Quite a lot of code to do a single thing, so I doubt I would have figured that out by myself without growing even more gray hairs.
Your script was almost ready to run, just needed to add "/" to the ftp adress to make it work.
Quite a lot of code to do a single thing, so I doubt I would have figured that out by myself without growing even more gray hairs.