Giter VIP home page Giter VIP logo

Comments (7)

danimajo avatar danimajo commented on July 25, 2024

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.

gtg092x avatar gtg092x commented on July 25, 2024

Thanks for the clear steps to recreate. I'll see if there's anything on this side that can address it.

from gulp-sftp.

akdjr avatar akdjr commented on July 25, 2024

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.

marcallkz avatar marcallkz commented on July 25, 2024

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.

davismj avatar davismj commented on July 25, 2024

I've also had this issue.

from gulp-sftp.

gtg092x avatar gtg092x commented on July 25, 2024

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.

davismj avatar davismj commented on July 25, 2024

Still having the issue.

from gulp-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.