The fileMapper JavaScript global object. Map paths from one format to another.
More...
|
String | toNativePath (String &path) |
| Returns the complete path of the passed path resolving shortcuts in windows. Will also convert the path separator to '\'. More...
|
|
String | toScenePath (String &path) |
| Converts a path of the form /USA_DB/jobs/ [job]/scene-[scene]/[remainder...] to eg. /usadata000/ [job]/scene-[scene]/[remainder...]. More...
|
|
String | fileURLToPath (String &url) |
| Converts a URL to a path of the form eg. /usadata000/ [job]/scene-[scene]/[remainder...]. More...
|
|
The fileMapper JavaScript global object. Map paths from one format to another.
◆ fileURLToPath
String fileMapper::fileURLToPath |
( |
String & |
url | ) |
|
|
slot |
Converts a URL to a path of the form eg. /usadata000/
[job]/scene-[scene]/[remainder...].
- Parameters
-
- Returns
- Returns the converted path.
◆ toNativePath
String fileMapper::toNativePath |
( |
String & |
path | ) |
|
|
slot |
Returns the complete path of the passed path resolving shortcuts in windows. Will also convert the path separator to '\'.
By example, /usadata000 is mapped to a network drive through a shortcut pointing to /server/path/usadata000.
The path will be remapped to \\server\path\usadata000\file.txt.
- Parameters
-
path | : The Path on Windows. |
- Returns
- Returns the native path.
◆ toScenePath
String fileMapper::toScenePath |
( |
String & |
path | ) |
|
|
slot |
Converts a path of the form /USA_DB/jobs/
[job]/scene-[scene]/[remainder...] to eg. /usadata000/
[job]/scene-[scene]/[remainder...].
- Parameters
-
path | : The path to convert. |
If working offline (no database) this function will return the input path.
In database mode if the path is not of the form
this function will return the input path.
In database mode if the scene cannot be located in the database this function will return the input path.
- Returns
- Returns the converted scene path.