lucasmeijer / niceio Goto Github PK
View Code? Open in Web Editor NEWFor when you've had to use System.IO one time too many
License: MIT License
For when you've had to use System.IO one time too many
License: MIT License
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.
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.
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$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.