Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Converts a file URL to a local file path.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Path | 5.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
URL | The file URL to convert. | "file://localhost/Users/cs/Desktop/test.html" |
Returns path or error.
Converts a path URL:
/* returns /Users/cs/Desktop/test.html */
MBS( "Path.FileURLToFilePath"; "file://localhost/Users/cs/Desktop/test.html" )
Example result: "/Users/cs/Desktop/test.html"
Converts file URL on Windows to path:
MBS( "Path.FileURLToFilePath"; "file://C:/Users/Christian/Desktop/test.html")
Example result: "/Users/Christian/Desktop/test.html"
Created 30th January 2015, last changed 11st December 2016
Path.FilePathToFileURL - Path.LastPathComponent
Feedback: Report problem or ask question.