Comments (7)
I think it is in parents, since parents tries to identify the os (which in the client case is windows), but target is something else
I tried to fix this, giving parents:
var fileDirs = parents(dirname,{platform:'unix'})
this works, but not in all cases (if you have sub-sub dirs with empty dirs, there is also an error)
I will try to provide a pull request, but I maybe need some time for this ...
from gulp-sftp.
Thanks for the clear steps to recreate. I'll see if there's anything on this side that can address it.
from gulp-sftp.
I encountered this same issue as well and just used a temporary hack to get this working for me. I don't know where that heading forward slash is getting trimmed (as I unfortunately don't have the time yet), so i just add the forward slash back to the beginning of the path if it's not there. Obviously this is not a catch all fix, but in my environment (windows client, linux remote) it works well enough for my purposes.
Added after Line 254
if (d[0] != '/') {
d = '/' + d;
}
from gulp-sftp.
I had this issue too.
Solved it by creating a fork (https://github.com/marcallkz/gulp-sftp) and replacing the 'parents' module with a simpler one I created just to break the path at the slashes.
The module I've created is at https://github.com/marcallkz/pathwalker
from gulp-sftp.
I've also had this issue.
from gulp-sftp.
Guys, a PR would have been appreciated. 1da970e should take care of your issue. I'm publishing the update now.
@marcallkz - please post a PR next time. npm won't see your repo and it takes the same work to merge your changes in.
from gulp-sftp.
Still having the issue.
from gulp-sftp.
Related Issues (20)
- ignore files and folders HOT 1
- Execute remote commands
- Remote file structure is incorrect HOT 2
- Known file size is required HOT 3
- "Quiet" mode?
- Timed out while waiting for handshake HOT 2
- trying to upload a build
- Fails on symbolic links pointing to a directory
- Is this project abandoned?? HOT 5
- issue with connection HOT 2
- Add support for gulp-cached
- Directory creation oddities
- update dependency version for ssh2
- Error: read ECONNRESET
- TypeError: file.pipe is not a function HOT 21
- could you add delete server path for this plugin HOT 1
- Can't find uploaded file on my target machine
- Don't work to upload through gulp-sftp HOT 10
- gulp-util dependency
- sft hangs on connect when using putty ppk file as private key HOT 1
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 gulp-sftp.