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

RMD the current directory fails on Apache Ftpserver #6339

Closed
cyberduck opened this issue Nov 1, 2011 · 2 comments
Closed

RMD the current directory fails on Apache Ftpserver #6339

cyberduck opened this issue Nov 1, 2011 · 2 comments
Assignees
Labels
bug fixed ftp FTP Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

Yaoyao created the issue

Hi,

Looks like whenever Cyberduck tries to delete an directory over FTP, it issues the following sequence of commands:

  • CWD /path/to/directory
  • RMD /path/to/directory

And the Apache FTP Server throws an error:

450 Can't remove directory /path/to/directory: resource busy.

and that's because Apache Ftpserver refuses to remove the directory if it happens to be the current directory. This behavior existed since 2008, as per https://issues.apache.org/jira/browse/FTPSERVER-227

Other FTP Clients don't attempt to remove a directory that happens to be the current directory. Can we issue a CDUP command right before the RMD command?

Thanks,
Yao

@cyberduck
Copy link
Collaborator Author

@dkocher commented

I think this is an implementation specific issue. There is no reason the last working directory should not be deletable.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In 2bd84e9.

@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.
Labels
bug fixed ftp FTP Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants