A utility library for Atom for resolving relative links into special folders such as the installation directory or the user's home directory. This uses a special "pseudo drive" prefix on the directory to translate into an absolute path.
||The directory the application is installed into.|
||The current user's home directory.|
||The configuration folder.|
||The user's desktop.|
||The user's documents (My Documents) folder.|
||The user's download folder.|
||Only used with
The above prefixes are case-insensitive and strip out dashes so
app-data: all resolve to the application data directory. This is to make it more tolerant toward non-technical users entering data.
Any leading slashes (
/) after the colon (or
~) will be stripped off and the remaining path will be treated as a file relative to that location. For example, on Unix,
home:etc/dictionaries would resolve to
home://etc/dictionaries resolve to the same path.
Absolute paths are passed in. If a relative path is given, either by prefixing with a
./ or not having a leading slash or drive, then relatively to the current working drive will be used.
Returns an absolute path from the given spec.
||A path specifier which may be an absolute, pseudo-drive, or relative path.|