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.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

Files.GetNodeID

Queries the NodeID fo the file or folder.

Component Version macOS Windows Linux Server FileMaker iOS SDK
Files 3.1 Yes Yes No Yes No
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 fo 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.

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 ]

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 ]

See also

Example Databases

Blog Entries

FileMaker Magazin

Release notes

Created 18th August 2014, last changed 10th August 2020


Files.GetFinderLabel   -   Files.GetPathFromNodeID

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins

Start Chat