hellzkitchen has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm using File::Find to traverse a filesystem and am trying to determine filesystem type and device at each level without resorting to df -T/df -k.

Replies are listed 'Best First'.
Re: Filesystem Device Queries (Sys::Filesystem)
by Anonymous Monk on Nov 01, 2013 at 23:45 UTC
Re: Filesystem Device Queries
by Anonymous Monk on Nov 02, 2013 at 14:56 UTC
    You can check if your new file is on a different file system with stat's 'device number' field (first item of the return list).