On Mon, Feb 04, 2013 at 01:19:35PM -0500, David Golden wrote: > On Mon, Feb 4, 2013 at 10:13 AM, David Cantrell <da...@cantrell.org.uk> wrote: > > my $fs = Devel::CheckFS->new($filename); > I didn't get the point of $filename until later when I realized how > elegantly it solves the filesystem problem. > E.g. create a tempdir, test a file in that tempdir. If things work, > then tests that create and do work in a tempdir should work, and so > on.
Thinking more about it, you don't really care where the filesystem is mounted, you just care about the capabilities that apply in a particular directory. And given that, to cope with shenanigans such as someone re-exporting a Samba FS over NFS you need to check those capabilities by actually trying to do stuff, then you might as well just try to do stuff and ignore mount points and whatnot altogether. I'm still not gonna write this sucker until I need it though :-) -- David Cantrell | Minister for Arbitrary Justice Seven o'clock in the morning is something that happens to those less fortunate than me