Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Standardized a path.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Files | 10.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Path | The file path to standardize. | "~/test" |
Returns OK or error.
Resolve path on Mac with ~ inside:
MBS( "Files.StandardizePath"; "~/test/./testing" )
Example result: /Users/cs/test/testing
Resolve environment variable on Windows:
MBS( "Files.StandardizePath"; "%HOMEPATH%\test.txt")
Example result: C:\Users\Christian\test.txt
Resolves on Windows an not needed folder name and two dots:
MBS( "Files.StandardizePath"; "%APPDATA%\notneeded\..\test.txt")
Example result: C:\Users\Christian\AppData\Roaming\test.txt
This function checks for a license.
Created 18th June 2020, last changed 19th June 2020