| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Files.GetNodeID
Queries the NodeID of the file or folder.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Files | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Files.GetNodeID"; Path ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Path | The native file/folder path. | $path |
Result
Returns file ID as number.
Description
Queries the NodeID of the file or folder.On macOS, every file usually has an unique ID on the hard disk.
Not all volumes support NodeIDs, but if they do, you can later find the file back on that volume using Files.GetPathFromNodeID.
Added Windows support in plugin version 8.5.
While node id is currently a 64-bit integer, it could change in future to an UUID or 128bit number.
Added iOS and Linux support in version 16.0. Sorry, but Linux has no good way to find a file by id except
Examples
Queries node ID:
Set Variable [$r; Value:MBS( "Files.GetNodeID"; "/Users/cs/Desktop/todo.rtf")]
Test ID functions:
Set Variable [ $path ; Value: "/Users/cs/Desktop/test.rtf" ]
Set Variable [ $id ; Value: MBS( "Files.GetNodeID"; $Path ) ]
Set Variable [ $NewPath ; Value: MBS( "Files.GetPathFromNodeID"; "/"; $id ) ]
Show Custom Dialog [ "Both Paths should be same" ; $Path & ¶ & $newPath ]
Set Variable [ $id ; Value: MBS( "Files.GetNodeID"; $Path ) ]
Set Variable [ $NewPath ; Value: MBS( "Files.GetPathFromNodeID"; "/"; $id ) ]
Show Custom Dialog [ "Both Paths should be same" ; $Path & ¶ & $newPath ]
Test on Windows:
Set Variable [ $node ; Value: MBS( "Files.GetNodeID"; "C:\Users\Christian\Desktop\DbgView.exe") ]
Set Variable [ $path ; Value: MBS( "Files.GetPathFromNodeID"; "C:"; $node) ]
Show Custom Dialog [ "NodeID" ; $node & ¶ & $path ]
Set Variable [ $path ; Value: MBS( "Files.GetPathFromNodeID"; "C:"; $node) ]
Show Custom Dialog [ "NodeID" ; $node & ¶ & $path ]
See also
Release notes
- Version 16.0
- Added Linux and iOS support for Files.GetNodeID function.
- Version 8.5
- Implemented Files.GetNodeID and Files.GetPathFromNodeID for Windows.
- Version 8.4
- Upgraded Files.GetPathFromNodeID and Files.GetNodeID to use newer APIs which work for AFS volumes.
Example Databases
Blog Entries
- Neues MBS Plugin 16.0 für Claris FileMaker
- MBS Plugin 16.0 for Claris FileMaker - More than 7800 functions in one plugin
- MBS FileMaker Plugin, version 15.6pr4
- Neues MBS FileMaker Plugin 8.5 - Über 5500 Funktionen in einem Plugin
- MBS FileMaker Plugin 8.5 - More than 5500 Functions In One Plugin
- MBS FileMaker Plugin, version 8.4pr3
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 20th December 2025