Quantcast
Channel: What's a "canonical path"? - Stack Overflow
Browsing all 6 articles
Browse latest View live

Answer by Achintya Guchhait for What's a "canonical path"?

The most issues with canonical paths occur when you are passing the name of a dir and not file. For file, if we are providing absolute path that is also the canonical path. But for dir it means...

View Article



Answer by Cratylus for What's a "canonical path"?

What a canonical path is (or its difference from an absolute path) is system dependent. Typically if a (full) path contains aliases, shortcuts or symbolic links the canonical path resolves all these...

View Article

Answer by alfasin for What's a "canonical path"?

A good way to define a canonical path will be: the shortest absolute path (short, in the meaning of string-length). This is an example of the difference between an absolute path and a canonical path:...

View Article

Answer by Kerrek SB for What's a "canonical path"?

The whole point of making anything "canonical" is so that you can compare two things. For example, both ../../here/bar/x and ./test/../../bar/x may refer to the same location, but you can't do a...

View Article

What's a "canonical path"?

That's a theory question. I've searched over the internet with no satisfying luck, I just want to understand what's this jargon. I've seen examples of Java, JSON, etc but I couldn't find in Google nor...

View Article


Answer by tlake29 for What's a "canonical path"?

A good definition of a canonical path is given in the documentation of readlink in GNU Coreutils. It is specified that 'Canonicalize mode' returns an equivalent path that doesn't have any of these...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images