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.GetPathFromNodeID

Finds the file or folder for the given NodeID on the given volume.

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

MBS( "Files.GetPathFromNodeID"; VolumePath; NodeID )

Parameters

Parameter Description Example value
VolumePath The native path to the volume. "/"
NodeID The node ID for the file, a number. $nodeID

Result

Returns the path for the file or error message.

Description

Finds the file or folder for the given NodeID on the given volume.
You need to pass the path to the volume where this NodeID belongs to.
This does not work well for most network mounts.
The plugin may run a search which can take a while.

Examples

Resolve node on system volume:

MBS( "Files.GetPathFromNodeID"; "/"; $NodeID )

Resolve node on mounted volume named USBStick:

MBS( "Files.GetPathFromNodeID"; "/Volumes/USBStick"; $NodeID )

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.GetNodeID   -   Files.GetPosixPermissions

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos