Component: Path 
----------------

Convert paths from native to Claris FileMaker style and back.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [2.4](newinversion24.md "First functions introduced with version 2.4.") / [9.0](newinversion90.md "Newest functions in version 9.0.") | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [Path.AddPathComponent](PathAddPathComponent.md)   Adds a new path component. | All   6.0 |
| [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)   Converts a FileMaker path useful for "filemac:" and "filewin:" path specification to a native path. | All   2.4 |
| [Path.FilePathToFileURL](PathFilePathToFileURL.md)   Converts a file path to a local file URL. | All   5.0 |
| [Path.FileURLToFilePath](PathFileURLToFilePath.md)   Converts a file URL to a local file path. | All   5.0 |
| [Path.LastPathComponent](PathLastPathComponent.md)   Queries the last path component. | All   6.0 |
| [Path.LongPath](PathLongPath.md)   Queries long file path on Windows. | All   9.0 |
| [Path.NativePathToFileMakerPath](PathNativePathToFileMakerPath.md)   Converts a native path to a FileMaker path useful for "filemac:" and "filewin:" path specification. | All   2.4 |
| [Path.RemoveLastPathComponent](PathRemoveLastPathComponent.md)   Removes last path component. | All   6.0 |
| [Path.ShortPath](PathShortPath.md)   Queries short file path on Windows. | All   9.0 |

9 functions shown.

These functions are free to use.

### Release notes

- **Version 15.2**
    - Fixed a bug in [Path.LastPathComponent](https://www.mbsplugins.eu/PathLastPathComponent.shtml) function where the last character got cut off.
- **Version 15.0**
    - Fixed an issue with [Path.NativePathToFileMakerPath](https://www.mbsplugins.eu/PathNativePathToFileMakerPath.shtml) on Linux adding an extra / to the path.
    - Fixed [Path.AddPathComponent](https://www.mbsplugins.eu/PathAddPathComponent.shtml) function for Windows to automatically use slash or backslash depending on what the path has already.
- **Version 14.2**
    - Improved [Path.NativePathToFileMakerPath](https://www.mbsplugins.eu/PathNativePathToFileMakerPath.shtml) to not put in the disk name if it is already there.
- **Version 14.1**
    - Marked [path](https://www.mbsplugins.eu/component_Path.shtml) functions to be free to use.
- **Version 14.0**
    - Fixed an edge case with [Path.LastPathComponent](https://www.mbsplugins.eu/PathLastPathComponent.shtml) to return last path name, even if a slash is on the end of the path.
- **Version 13.4**
    - Fixed a problem with [Path.FilePathToFileURL](https://www.mbsplugins.eu/PathFilePathToFileURL.shtml) for Windows.
- **Version 12.0**
    - Fixed [Path.FileMakerPathToNativePath](https://www.mbsplugins.eu/PathFileMakerPathToNativePath.shtml) to recognise filelinux: prefix.
- **Version 11.0**
    - Added PassThroughNativePath flag to [Path.FileMakerPathToNativePath](https://www.mbsplugins.eu/PathFileMakerPathToNativePath.shtml) function to disable the pass through of valid paths.
- **Version 9.4**
    - Changed [Path.AddPathComponent](http://www.mbsplugins.eu/PathAddPathComponent.shtml) to accept multiple parameters.

### Blog Entries

- [MBS Plugin 14.1 for Claris FileMaker](https://www.mbsplugins.de/archive/2024-03-12/MBS_Plugin_141_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.1pr4](https://www.mbsplugins.de/archive/2024-02-26/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Combined Components with MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2021-03-29/Combined_Components_with_MBS_F/monkeybreadsoftware_blog_filemaker)
- [New MBS FileMaker Plugin 9.0](https://www.mbsplugins.de/archive/2019-01-22/New_MBS_FileMaker_Plugin_90/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 6.0 for OS X/Windows](https://www.mbsplugins.de/archive/2016-01-28/MBS_FileMaker_Plugin_60_for_OS/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 2/2025, Seite 24](https://filemaker-magazin.de/neuigkeit/4286-Appetithappen-FMM_202502)
- [Ausgabe 6/2024, Seite 37](https://filemaker-magazin.de/neuigkeit/4277-Appetithappen-FMM_202406)
- [Ausgabe 5/2024, Seite 29](https://filemaker-magazin.de/neuigkeit/4272-Appetithappen-FMM_202405)
- [Ausgabe 3/2024, Seite 31](https://filemaker-magazin.de/neuigkeit/4263-Appetithappen-FMM_202403)
- [Ausgabe 4/2023, Seite 37 bis 39](https://filemaker-magazin.de/neuigkeit/4233-Appetithappen-FMM_202304)
- [Ausgabe 6/2022, Seite 14](https://filemaker-magazin.de/neuigkeit/4206-Appetithappen-FMM_202206)
- [Ausgabe 1/2022, Seite 19](https://filemaker-magazin.de/neuigkeit/4172-Appetithappen-FMM_202201)
- [Ausgabe 6/2021, Seite 21](https://filemaker-magazin.de/neuigkeit/4165-Appetithappen-FMM_202106)
- [Ausgabe 4/2020, Seite 34](https://filemaker-magazin.de/neuigkeit/4103-Appetithappen-FMM_202004)
- [Ausgabe 6/2018, Seite 30 bis 31](https://filemaker-magazin.de/neuigkeit/4025-Appetithappen-FMM_201806)

### Example Databases

- [Containers/Create Container Preview](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Containers/Create%20Container%20Preview.shtml#1ScriptAnchor_)
- [CURL/Email/IMAP Email](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/IMAP%20Email.shtml#6ScriptAnchor_)
- [CURL/WebServices/WeatherBit.io test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/WeatherBit.io%20test.shtml#4ScriptAnchor_)
- [Drag and Drop/DragTest](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Drag%20and%20Drop/DragTest.shtml#3ScriptAnchor_)
- [DynaPDF/RenderJob](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/RenderJob.shtml#1ScriptAnchor_)
- [Files/FileOperation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileOperation.shtml#7ScriptAnchor_)
- [Mac and iOS/PDFKit/PDFKit Print Documents](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/PDFKit%20Print%20Documents.shtml#12910FieldAnchor_)
- [Network/ServerSocket/ServerSocket from Webviewer/ServerSocket from Webviewer](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/ServerSocket/ServerSocket%20from%20Webviewer/ServerSocket%20from%20Webviewer.shtml#3ScriptAnchor_)
- [WebViewer/MethodDraw SVG Editor/MethodDraw](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/MethodDraw%20SVG%20Editor/MethodDraw.shtml#1ScriptAnchor_)
- [Win Only/Windows Player](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Windows%20Player.shtml#2ScriptAnchor_)

[HTML Version](component_Path.shtml)