The stupid question is the question not asked | |
PerlMonks |
Filesystem checkingby coec (Chaplain) |
on Apr 30, 2004 at 06:48 UTC ( [id://349348]=perlquestion: print w/replies, xml ) | Need Help?? |
coec has asked for the wisdom of the Perl Monks concerning the following question:
Hi all I have a Perl script that traverses a directory structure, processing files as it goes. The script needs to not leave the current filesystem, basicaly, equiv to adding -xdev to Unix find. I'm looking for a better way to do this. Currently I'm doing equiv to `df . | awk '{print $1}'` and checking that the filesystem is the same. I was looking for a pure Perl solution and all I can think of is using "(stat $dir)[0]". Are there better ways of doing this? Thanks CC
Back to
Seekers of Perl Wisdom
|
|