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

Improvements delete directory method. #2

Closed

Conversation

NerijusD
Copy link
Contributor

These changes affect DeleteDirectory when called recursively with force flag set.

Changes ensure that:

  • GetListing method is called only once - all data regarding files / directories are downloaded in single big chunk instead of making separate small requests. Thus improves bandwidth usage and response time.
  • Files and directories are deleted in right order, based on depth of directional hierarchy and type.

Copy link
Owner

@robinrodricks robinrodricks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested with single folders, empty folders and folders with multiple subfolders?

robinrodricks pushed a commit that referenced this pull request Nov 25, 2016
@robinrodricks
Copy link
Owner

I merged this manually in this commit.

Because I could not test with multiple servers (WasGetListingRecursive()) I added a boolean fastMode. I don't want to break the DeleteDirectory method.

robinrodricks pushed a commit that referenced this pull request May 4, 2017
Pull upstream changes from master
robinrodricks pushed a commit that referenced this pull request Sep 22, 2017
robinrodricks pushed a commit that referenced this pull request Oct 11, 2017
Pull from robinrodricks/FluentFTP
robinrodricks pushed a commit that referenced this pull request Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants