Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

Files.GetNodeID

Queries the NodeID fo the file or folder.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Files 3.1 Yes No Yes, macOS only No No

MBS( "Files.GetNodeID"; Path )

Parameters

Parameter Description Example value
Path The native file/folder path. $path

Result

Returns file ID as number.

Description

Queries the NodeID fo the file or folder.
On Mac OS X, 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.

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 ]

See also

Example Databases

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


Files.GetFinderLabel   -   Files.GetPathFromNodeID

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos