Coder Social home page Coder Social logo

Comments (5)

casey avatar casey commented on July 29, 2024 2

I'm supposed to put a note in the readme when something is available on master but not a release, but I always forget 😅 Just released 1.24.0 which includes canonicalize!

from just.

casey avatar casey commented on July 29, 2024 1

Just added a canonicalize function, which calls std::fs::canonicalize.

from just.

casey avatar casey commented on July 29, 2024

clean() does lexical path cleaning, so it only looks at the path it gets passed, not the filesystem to resolve symlinks. Would adding a canonicalize() function help? canonicalize() would be like clean(), except it would look at and resolve symlinks to produce a canonical path. canonicalize() would be easy enough to add, since rust provides std::fs::canonicalize, and the function could just call that.

from just.

JonathanDoughty avatar JonathanDoughty commented on July 29, 2024

Yes, that looks like it would provide the desired symlink resolution, with Windows support for those that need it. Thanks!

from just.

jneuendorf-i4h avatar jneuendorf-i4h commented on July 29, 2024

Just added a canonicalize function, which calls std::fs::canonicalize.

I just fell for it, because it's already merged in master and thus part of the online documentation, but has not yet been released. 😅 I guess, it will be contained in 1.24.0+. Can you say, when it will be released?

from just.

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.