What does the ~ mean in an absolute file path?
I see this in the output of things like build scripts but the path does not exist.
|
|
Normally it means the user's home directory e.g. Note that I'm talking about Unix based systems here. |
|||||||||||||||||
|
|
Actually, both of the answers by Adrian Mouat and studiohack are true.
In some operating systems (namely Unix) it means home-dir (and might be seen as an absolute but not canonical path). |
|||||||||||||||
|
Source: Naming Files, Paths, and Namespaces - Short vs. Long Names - MSDN (Part-way down the page...) |
|||
|
|
|
And if you do ASP.NET programming it means the top level of the website; rather than navigating using ../../images/some_image.jpg (and getting your nesting level wrong!) you can simply say ~/images/some_image.jpg |
|||||||
|
|
Here is a couple of hints that can help you to figure it out better:
Note: |
|||
|
|