Triggered by the discussion on this thread, and scratching an itch (I need the notion of a cross-platform file system for something I am working on), I have released Filesys::Type 0.01.

Currently supported platforms are Windows and Unix, though other platforms can be added via plugins (the module uses Module::Pluggable). VMS support is coming in the next version.

I have written a few basic tests for the module, but it's very difficult when I have no idea what hardware exists on the machine on which the module is being installed. I would be very grateful for any insights into how to write such tests (mock file systems? mock operating systems??). I would also like the module to be tested on as many hardware and O/S configurations as possible.

Comments, suggestions, feedback, patches, all welcome.

--

Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)

Replies are listed 'Best First'.
Re: RFC: Filesys::Type
by Corion (Patriarch) on Jun 13, 2005 at 11:12 UTC

    The CPAN testers will automagically test your module with various configurations. Unfortunately, the later CPANPLUS (as of v0.0050) all broke cpan smoke testing, but luckily, CPAN::YACSmoke picked up the baton.

    You will be notified of failures, maybe together with a detailed report of the failure. You can also view the failures via your CPAN page, via the "CPAN Testers" link.

    Update: Put in correct link to CPAN Testers

Re: RFC: Filesys::Type
by ghenry (Vicar) on Jun 13, 2005 at 10:51 UTC

    Installed via cpan module and tested fine on a:

    Dell SC420 with Centos 3.5 (Recompiled Red Hat Enterprise Server 3, with enhancements), Celeron 2.53, 1GB RAM and perl 5.8.6 using:

    #!/usr/local/bin/perl use warnings; use strict; use Filesys::Type qw(fstype); my $fs = '/home'; warn "Not able to share with Windows" if (fstype($fs) ne 'vfat'); print fstype($fs) . "\n";

    HTH.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!