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

infinite loop in downloadDir() in version >=4 #99

Closed
k2s opened this issue Oct 17, 2019 · 6 comments
Closed

infinite loop in downloadDir() in version >=4 #99

k2s opened this issue Oct 17, 2019 · 6 comments

Comments

@k2s
Copy link

k2s commented Oct 17, 2019

Describe the bug

  • in version <4, the function list() returns array of 152 files in my remote directory
  • then using versions >=4 it returns 154 files
    • the two additional files are . and ..
  • this is causing function downloadDir() to be in infinite loop by listing data in . directory
@patrickjuchli
Copy link
Owner

patrickjuchli commented Oct 17, 2019

That's very interesting because that should (of course) not happen.

Could you use client.ftp.verbose and show me the output when using client.list()? Usually, . and .. should be denoted in a special way by the server but apparently they're not.

@patrickjuchli
Copy link
Owner

You can also try a new update, 4.2.1, which should address that case.

@k2s
Copy link
Author

k2s commented Oct 17, 2019

thank you, this was fast. I confirm that 4.2.1 fixes this issue.

@k2s k2s closed this as completed Oct 17, 2019
@patrickjuchli
Copy link
Owner

That's great to hear!

I'd be happy to see the raw log of a listing. There's something different with your server and I want to make sure I have a good enough understanding. If you could just use client.ftp.verbose = true, do a simple client.list() and post the console log here that would be great.

@k2s
Copy link
Author

k2s commented Oct 18, 2019

will this help ?

@patrickjuchli
Copy link
Owner

Fantastic, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants