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
In reply to Filesystem checking by coec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |