Giter Site home page Giter Site logo

Comments (1)

puellanivis avatar puellanivis commented on May 26, 2024

I do not see any sftp.WithServerWorkingDirectory(…) option in master, or in a PR.

The Server struct is known to be of a limited use, since it works only with the raw filesystem and has no ability to add a subdirectory option. The core problem relevant here is that getting a proper chroot to work is an infamously Difficult Problem™, and so we have actively avoided attempting to bodge this functionality into the Server implementation. If the Server does not suit ones needs, then we strongly recommend that one should move on to the RequestServer implementation, which allows for significantly more control (and more well behaved control) over how file requests are handled.

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