Index: /trunk/DataStore/lib/DataStore/File.pm
===================================================================
--- /trunk/DataStore/lib/DataStore/File.pm	(revision 6624)
+++ /trunk/DataStore/lib/DataStore/File.pm	(revision 6625)
@@ -1,5 +1,5 @@
 # Copyright (C) 2006  Joshua Hoblitt
 #
-# $Id: File.pm,v 1.9 2006-03-17 01:11:23 jhoblitt Exp $
+# $Id: File.pm,v 1.10 2006-03-17 03:40:46 jhoblitt Exp $
 
 package DataStore::File;
@@ -18,5 +18,4 @@
 use Digest::MD5::File qw( file_md5_hex );
 use File::stat;
-use POSIX ();
 use Params::Validate qw( validate SCALAR );
 
@@ -128,12 +127,15 @@
                 type        => SCALAR,
                 regex       => $STD_FIELD,
+                optional    => 1,
             },
             bytes   => {
                 type        => SCALAR,
                 regex       => $BYTE_FIELD,
+                optional    => 1,
             },
             md5sum  => {
                 type        => SCALAR,
                 regex       => $MD5_FIELD,
+                optional    => 1,
             },
             type    => {
@@ -143,4 +145,5 @@
                         sub { exists $KNOWN_FILE_TYPES{$_[0]} },
                 },
+                optional    => 1,
             },
         },
@@ -181,5 +184,5 @@
 object.
 
-XXX writing the file into memory or to a filehandle will be implimented upon
+XXX writing the file into memory or to a filehandle will be implemented upon
 request.
 
@@ -192,5 +195,6 @@
 =item * filename
 
-The filename/path to save the file to disk as.
+The filename/path to save the file to disk as.  It is the user's responsibility
+to make sure that this is a valid filename/path.
 
 =back
@@ -206,10 +210,5 @@
             filename    => {
                 type        => SCALAR,
-                regex       => qr/\S+/, # string with atleast 1 non WS char
-                callbacks   => {
-                    'write access' => sub {
-                        POSIX::access($_[0], &POSIX::W_OK);
-                    },
-                },
+                regex       => qr/\S+/, # string with at least 1 non WS char
             },
         },
