Comments (6)
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.
Was this issue fixed? I'm still seeing this error when moving multiple files in a C9 FTP project.
from jsftp.
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.
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.
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.
@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)
- Ftp.features is undefined when auth is not called
- list returns wrong filename if filename starts with a space HOT 1
- raw command of send was failed
- Documentation May Be Wrong HOT 1
- Can i sync ftp folder with local folder?
- ftp.get() not working correctly HOT 7
- Browse directories
- Ftp.put can only upload empty files on node10.16.0. If there is content, call error = = = false, but there is no file on the server
- jsftp ls error
- TypeError: this.socket.on is not a function at Ftp._createSocket HOT 3
- How to use 'rmda' command HOT 3
- not support node v10.x (fault upload, download at CentOS8) HOT 2
- Is it possible to use put function for directory
- HTTP proxy
- Ftp.get(remotePath, localPath, callback) creating files with size 0
- DeprecationWarning: Invalid 'main' field in '/workspaces/myblog/node_modules/jsftp/package.json' of './jsftp.js'.
- .rename 501 Bad sequence of commands fix
- FTP raw mkd HOT 1
- Invalid 'main' field in 'D:\hexo\blog\node_modules\jsftp\package.json'
- How to multiple get files [solution]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsftp.