in reply to How best test that a directory is a mount point of a mounted filesystem?

Check this out: Sys::Filesystem::ID

If you look at the code.. The sub _arg_to_mount_point() takes a filepath and returns mount point.

my $mount_point = _arg_to_mount_point('/usr/share/stuff/file2.pdf');

Might have to be altered for more.. Hmm.. Could that be of use?

Sys::Filesystem rocks.

  • Comment on Re: How best test that a directory is a mount point of a mounted filesystem?