Created
February 7, 2012 04:23
-
-
Save davestewart/1757156 to your computer and use it in GitHub Desktop.
xJSFL URI library - results of resolving URIs relative to running script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All URIs relative to calling script: file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/examples/uri-test.jsfl | |
URI.toURI(path); | |
Notes: | |
file.txt = current folder | |
./file.txt = current folder | |
../file.txt = parent folder | |
/file.txt = xJSFL root | |
//file.txt = current script's drive's root | |
{placeholder}file.txt = registered folder | |
+-----------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | |
| Original | Conversion | | |
+-----------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | |
| | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/examples/ | | |
| folder | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/examples/folder | | |
| folder/ | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/examples/folder/ | | |
| filename.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/examples/filename.txt | | |
| ./filename.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/examples/filename.txt | | |
| ../filename.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/filename.txt | | |
| ../../filename.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/filename.txt | | |
| ./.././../filename.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/examples/filename.txt | | |
| ../../../../../filename.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/filename.txt | | |
| some path/to/filename.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/examples/some%20path/to/filename.txt | | |
| some path\to\filename.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/examples/some%20path/to/filename.txt | | |
| /filename.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/filename.txt | | |
| //script root/filename.txt | file:///E|/script%20root/filename.txt | | |
| C:/path/to/filename.txt | file:///C|/path/to/filename.txt | | |
| C:\path\to\filename.txt | file:///C|/path/to/filename.txt | | |
| Macintosh HD:long path/to/filename.txt | file:///Macintosh%20HD/long%20path/to/filename.txt | | |
| Macintosh HD:/long path/to/filename.txt | file:///Macintosh%20HD/long%20path/to/filename.txt | | |
| ./a/b/c/d/../../filename.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/examples/a/b/filename.txt | | |
| file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/ | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/ | | |
| file:///F|/Users/Dave%20Stewart/AppData/Local/Adobe/Flash%20CS4/en/Configuration/ | file:///F|/Users/Dave%20Stewart/AppData/Local/Adobe/Flash%20CS4/en/Configuration/ | | |
| file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/libraries/load-modules.jsfl | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/jsfl/libraries/load-modules.jsfl | | |
| file:///C|/path/to/filename.txt | file:///C|/path/to/filename.txt | | |
| file:///C:/path/to/filename.txt | file:///C:/path/to/filename.txt | | |
| file:///path to/filename.txt | file:///path to/filename.txt | | |
| file:///filename.txt | file:///filename.txt | | |
| {user}path/to/file.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/path/to/file.txt | | |
| {user}/path/to/file.txt | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/user/path/to/file.txt | | |
| {flash}path/to/file.txt | file:///F|/Users/Dave%20Stewart/AppData/Local/Adobe/Flash%20CS4/en/Configuration/path/to/file.txt | | |
| {flash}/path/to/file.txt | file:///F|/Users/Dave%20Stewart/AppData/Local/Adobe/Flash%20CS4/en/Configuration/path/to/file.txt | | |
| {flash}../path/to/file.txt | file:///F|/Users/Dave%20Stewart/AppData/Local/Adobe/Flash%20CS4/en/path/to/file.txt | | |
| F:\Users\Dave Stewart\AppData\Local\Adobe\Flash CS4\en\Configuration\ | file:///F|/Users/Dave%20Stewart/AppData/Local/Adobe/Flash%20CS4/en/Configuration/ | | |
| / | file:///E|/05%20-%20Commercial%20Projects/xJSFL/3%20-%20development/xJSFL/ | | |
| // | file:///E|/ | | |
| C:/ | file:///C|/ | | |
| C: | file:///C| | | |
+-----------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment