I connect via lftp -u username, sftp://server.name.com:/directory to a sftp-server, which works correctly.
Anyhow, I want to use find. -name *someWildcardExpression -type f -delete in order to delete all files in the directory as well as subdirectories. Actually, find finds all relevant files. However, it also tries to access directories created by the arguments passed to find:
lftp username@server.name.com:/directory> find . -name *someWildcardExpression -type f
Output
./
./file_a.csv.gz.gpg
./subdir/
./subdir/file_a.csv.gz.gpg
./subdir/file_b.csv.gz.gpg
./subdir/file_c.csv.gz.gpg
find: No such file (/directory/-name)
find: No such file (/directory/*someWildcardExpression )
find: No such file (/directory/-type)
find: No such file (/directory/f)
This does not seem right.
Am I using the find-command wrong, or is this a bug?