Code Monkey home page Code Monkey logo

Comments (6)

delano avatar delano commented on August 17, 2024

Thanks for the report. Net-SFTP is in maintenance mode but I'm happy to pull in a fix.

from net-sftp.

elyngved avatar elyngved commented on August 17, 2024

Hey @unregistered I am seeing a similar error. When the remote directory has too many files on it, trying to access the entries locks up the thread. When are are only a few files, I can retrieve them, but calling entries.each (or sftp.entries.foreach) but it does not properly parse the files, rather in my case all the file names sit among other random characters in a long string. Have you found a solution to your problem?

from net-sftp.

unregistered avatar unregistered commented on August 17, 2024

Hmm I don't think I've seen the issue with large directories before. How many entries are we talking?

I haven't found time to look into this issue, but I'll post any updates here.

On Apr 1, 2013, at 3:58 PM, elyngved <[email protected] (mailto:[email protected])> wrote:

Hey @unregistered (https://github.com/unregistered) I am seeing a similar error. When the remote directory has too many files on it, trying to access the entries locks up the thread. When are are only a few files, I can retrieve them, but calling entries.each (or sftp.entries.foreach) but it does not properly parse the files, rather in my case all the file names sit among other random characters in a long string. Have you found a solution to your problem?


Reply to this email directly or view it on GitHub (#22 (comment)).

from net-sftp.

unregistered avatar unregistered commented on August 17, 2024

Hey, it's been awhile but I found a solution that I wanted to share.

handle.dir.entries(path) # hangs forever
handle.dir.entries(path.force_encoding(Encoding::ASCII_8BIT)) # works

I tried this on ruby-2.0.0.

from net-sftp.

elyngved avatar elyngved commented on August 17, 2024

@unregistered thanks for following up. Does that just force encoding on the path string passed to the entries method? That doesn't seem to have an effect for me. In my app my path is simply the root path of '/'

from net-sftp.

unregistered avatar unregistered commented on August 17, 2024

I think it may be a different issue then. My issue comes from listing a path containing UTF8 characters.

from net-sftp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.