Is there a way to get the full path to the file based on its inode
number ?
$inode = fileinode($path);
$path = ???
Is there a way to get the full path to the file based on its inode
number ?
$inode = fileinode($path);
$path = ???
You can check ffind
tool on Sleuth Kit Libary (TSK), might help you.
ffind
finds the names of files or directories that are allocated to inode on disk image image. By default it only will only return the first name it finds. With some file systems, this will find deleted file names.
The following PHP snippet works for me:
$Command = "find ".__DIR__." -inum ".$Inode." -print";
$Result = shell_exec($Command);
Sources: