Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Removes last path component.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Path | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Path | The native file path. | "/Users/cs/Desktop" |
Returns path or error.
Removes last path component on Windows:
MBS( "Path.RemoveLastPathComponent"; "c:\\test.txt" )
Get app folder path:
MBS( "Path.RemoveLastPathComponent"; MBS( "App.GetProcessPath" ))
Query plugin folder:
MBS( "Path.RemoveLastPathComponent"; MBS( "Plugin.Path" ) )
Example result: "/Applications/FileMaker Pro 18 Advanced/Extensions"
This function is free to use.
Created 30th November 2015, last changed 20th February 2024