Hi, I’m trying to delete a file from a folder on my site using the example provided by MBS.
CURLS ftp file delete.xojo_binary_project
In the URL box, I entered ftp://www.mysito.it
in the Path box, I entered
public/myfile.txt
I get these results in the listbox.
Host www.mysite.it:21 was resolved.
Connected to www.mysite.it (31.11.35.208) port 21
230 User logged in.
226 Transfer complete.
DELETE public/myfile.txt
550 The system cannot find the path specified.
QUOT string not accepted: DELE public/myfile.txt
result21
FTP is a process running on the server, so it uses the whole local path, something like var/123456789/home/www/public - so you have to either set the working directory or specify the whole path…
Well, when you enter the server, which directory do you start in?
Are you in public already? We usually use one of the directory listing examples to see where we are.
If you are inside public, you use “DELE myfile.txt” to remove that file. If you are one level higher, the public/myfile.txt should work. But maybe public is in www folder? Then it would be “DELE www/public/myfile.txt”.
I solved it. I remembered that my site has a Daily Backup and a Weekly Backup.
So in the URL I wrote ftp://www.mysite.it/mysite.it/ and that’s how it works. Thank you all for your interest.