Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Use Applescript and sftp To Delete Remote File #1939

Closed
cyberduck opened this issue Apr 14, 2008 · 4 comments
Closed

Cannot Use Applescript and sftp To Delete Remote File #1939

cyberduck opened this issue Apr 14, 2008 · 4 comments

Comments

@cyberduck
Copy link
Collaborator

@cyberduck cyberduck commented Apr 14, 2008

anonymous created the issue

This last worked in version 2.7.3 of Cyberduck.

In newer versions, Applescript returns the error:

"Cyberduck got an error: Can't get file "filename" of Browser 1." 
(where filename is the actual name of the file to be deleted).

The code I'm using is:

if exists file filename then
   delete file filename
end if

So Cyberduck is recognizing that the file exists on the remote server. It just can't delete it.

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Apr 19, 2008

@dkocher commented

You have to write

delete item filename

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jun 25, 2008

anonymous commented

Unfortunately, "delete item filename" results in CyberDuck displaying "cannot delete folder" in its status area (bottom left).

Adding the "display dialog filename" before the attempt to delete shows that the variable "filename" correctly contains the name of the file to be deleted (in this case an image file).

In my case, the containing folder name and the filenames are similar (i.e. the folder name is "LH-413" and the filename is "LH-413.jpg"). Perhaps this is causing the problem?

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jun 25, 2008

anonymous commented

Replying to [comment:3 anonymous]:

Sorry, I should also note here that I'm using the sftp protocol to connect to my server.

Unfortunately, "delete item filename" results in CyberDuck displaying "cannot delete folder" in its status area (bottom left).

Adding the "display dialog filename" before the attempt to delete shows that the variable "filename" correctly contains the name of the file to be deleted (in this case an image file).

In my case, the containing folder name and the filenames are similar (i.e. the folder name is "LH-413" and the filename is "LH-413.jpg"). Perhaps this is causing the problem?

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jul 21, 2008

@dkocher commented

Please try the latest nightly build from (http://update.cyberduck.ch/nightly). This should be resolved as of 20d6134.

@cyberduck cyberduck closed this Jul 21, 2008
@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants