Giter Club home page Giter Club logo

Comments (3)

byteskeptical avatar byteskeptical commented on July 23, 2024

It's not relative but the recursive functions whether put_d() or put_r() will maintain the directory structure of the localdir parameter and its contents. Your expectations are not quite right but it should not include the parent portion of the localdir path in the remote. To be clear of the expectations using your example:

put_d remotepath

inbox/test/file1.txt
inbox/test/file2.txt

The PR I've attached should fix this. Can you confirm when you get a chance?

from sftpretty.

mawaliya avatar mawaliya commented on July 23, 2024

Thank you for the prompt fixed and the clarification. I have checked it just now, got an issue in creating the remote path directories. In terms of expected result, I was expecting a more predicted and naive way which is, in my opinion whatever files in a locadir, will be in remotedir , ignoring the parents or the stem. So no hidden functionalities that it will create a stem folder in remote. Then when stem and parent become important, put_r will do the job. But I can still work with this approach by naming my localdir to be the same name with the remotedir.

from sftpretty.

mawaliya avatar mawaliya commented on July 23, 2024

@byteskeptical (wave)

from sftpretty.

Related Issues (19)

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.