Giter Club home page Giter Club logo

niceio's People

Contributors

joshpeterson avatar lucasmeijer avatar mrvoorhe avatar scottbilas avatar shana avatar tautvydaszilys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

niceio's Issues

Empty path is converted to "."

Currently new NPath("").ToString() returns ".". I think the result should be an empty string, because "an empty path, or relative to anything" and "path relative to current directory" have quite different semantic meanings. But I'm not 100% convinced myself. What do you think? This was introduced in 62deffd.

Ambiguous Combine(params)

Combine(params string[]) and Combine(params NPath[]) are ambiguous when calling Combine() with a single NPath param, probably due to the implicit NPath-to-string conversion.

You can't safely collapse /foo/../bar to /bar without inspecting the filesystem

Symlinks might to directories might render the collapsed path different from the original one.

Consider:

lasse@deviance:/tmp/test$ find . | xargs ls -ld
drwxr-xr-x  5 lasse  wheel  170 Mar 30 14:04 .
lrwxr-xr-x  1 lasse  wheel   10 Mar 30 14:04 ./dir -> else/where
drwxr-xr-x  4 lasse  wheel  136 Mar 30 14:05 ./else
-rw-r--r--  1 lasse  wheel    0 Mar 30 14:05 ./else/file
drwxr-xr-x  2 lasse  wheel   68 Mar 30 14:03 ./else/where
-rw-r--r--  1 lasse  wheel    0 Mar 30 14:01 ./file
lasse@deviance:/tmp/test$ ls -li dir/../file
33273279 -rw-r--r--  1 lasse  wheel  0 Mar 30 14:05 dir/../file
lasse@deviance:/tmp/test$ ls -li file
33273240 -rw-r--r--  1 lasse  wheel  0 Mar 30 14:01 file
lasse@deviance:/tmp/test$ 

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.