in reply to locate path to a file from inode number
you create a new filename new, but it will have the same i-node number as old. Furthermore, it's also possible that you have a file (and hence an i-node number), without a file name. That happens for instance in the following code:ln old new
The file still exists (and you can write to it), it uses an i-node, but there's no directory with an entry, and hence there's no file name for it.my $file = "/tmp/whatever"; open my $fh => "> $file" or die; unlink $file or die;
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: locate path to a file from inode number
by Aristotle (Chancellor) on Nov 09, 2002 at 20:29 UTC | |
by Abigail-II (Bishop) on Nov 11, 2002 at 15:39 UTC | |
by Aristotle (Chancellor) on Nov 11, 2002 at 17:16 UTC | |
by Abigail-II (Bishop) on Nov 12, 2002 at 16:16 UTC |