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.GetPathFromNodeID
Finds the file or folder for the given NodeID on the given volume.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Files | 3.1 | Yes | Yes | No | Yes | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| 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.
Added Windows support in plugin version 8.5.
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 ]
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
- 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.5pr4
- MBS FileMaker Plugin, version 8.4pr3
- MBS FileMaker Plugin, version 5.1pr4
Release notes
- 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.
Created 18th August 2014, last changed 25th October 2018
Files.GetNodeID - Files.GetPosixPermissions
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos