Giter VIP home page Giter VIP logo

Comments (6)

sergi avatar sergi commented on May 25, 2024

That would be a solution, but then every command would have to check for some lock mechanism from rename. Except for get and put, all other calls work in node.js style, that is, using callbacks. Most of the time it is not a problem to put sequential calls, but in the case of rename it is , since it uses 2 commands to accomplish the order, and indeed other calls can sneak between renames.

from jsftp.

fjakobs avatar fjakobs commented on May 25, 2024

Was this issue fixed? I'm still seeing this error when moving multiple files in a C9 FTP project.

from jsftp.

sergi avatar sergi commented on May 25, 2024

It is fixed because parallel calls are not possible in jsftp since 1.0. The same can be accomplished in a more 'node' way with callbacks or promises. What version are you on?

Also, I thought you were not using jsftp anymore in Cloud9 though and interfacing directly with an ftp child process?

from jsftp.

fjakobs avatar fjakobs commented on May 25, 2024

We are still using jsftp but stuck on 0.5.5 because of some file listing issues. I fixed it now with this change https://github.com/ajaxorg/jsftp/commit/97d65da1c29f3bc9b1a2363431b87a7bc9520373

from jsftp.

sergi avatar sergi commented on May 25, 2024

Ugh. It would be worth updating to 1.0 and test. Besides the one above, other reasons for upgrading:

  • No more buffering, all streams. In the version you have there is buffering going on (I believe). This could slow down servers since big files are buffered in memory until they are transferred.
  • File listings are transferred in A (text) mode, so you shouldn't have any more missing files because of strange formatting/truncation.
  • Other bugs fixed along the way, and speed improvements, less dependencies, more unit tests, coverage, etc.

from jsftp.

danvass avatar danvass commented on May 25, 2024

@sergi Is there a fix for this issue? I'm experiencing it with the latest version. @fjakobs Do you by chance know?

from jsftp.

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.