[Gambas-user] Inode from file and Gambas
T Lee Davidson
t.lee.davidson at gmail.com
Wed Mar 1 19:04:30 CET 2023
On 3/1/23 11:54, Fabien TONIUTTI wrote:
> Hi every one
>
> Is existing one Gambas command to get File inode from its name ?
>
> Or reverse ,get name from inode?
>
> gb3.18 MINT ext4
>
> Thx
There is the Stat command that returns a Stat object. But, that object does not have an Inode property. You would need to use
Shell thusly:
Shell("stat --printf=%i " & [filename] To sOutput
Getting a filename from an inode number can be problematic.
--
Lee
More information about the User
mailing list