You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using lftp version 4.9.3 to synchronize files to an FTP server, but I’m encountering an issue where I can’t delete files in the root directory of the server. I’ve tried using the following script:
set ftp:ssl-allow no;
open -u $FTP_USER,$FTP_PASS $FTP_HOST;
mirror —reverse —delete - ./ —exclude ‘^\..*$’; bye”
During the execution of this script, I get the following error:
Removing old file `EXAMPLE_FILE.txt’
rm: Access failed: 550 File Not Found (EXAMPLE_FILE..txt)
However, when I manually log in to the FTP server and attempt to delete a file in the root directory without the ./ prefix, it works fine. For instance, the following commands work:
rm EXAMPLE_FILE.txt
rm ./EXAMPLE_FILE.txt
It appears that lftp might be creating a file path with ./ that the server is unable to handle.
The text was updated successfully, but these errors were encountered:
I’m using lftp version 4.9.3 to synchronize files to an FTP server, but I’m encountering an issue where I can’t delete files in the root directory of the server. I’ve tried using the following script:
During the execution of this script, I get the following error:
However, when I manually log in to the FTP server and attempt to delete a file in the root directory without the ./ prefix, it works fine. For instance, the following commands work:
It appears that lftp might be creating a file path with ./ that the server is unable to handle.
The text was updated successfully, but these errors were encountered: