Fix warning due to File::Copy being sloppy
Peter Rabbitson [Sun, 21 Sep 2008 22:35:22 +0000 (22:35 +0000)]
lib/DBIx/Class/InflateColumn/File.pm

index d462bcc..9687f94 100644 (file)
@@ -96,7 +96,7 @@ sub _save_file_column {
     my $fs_file = $self->_file_column_file($column, $value->{filename});
     mkpath [$fs_file->dir];
     
-    File::Copy::copy($value->{handle}, $fs_file);
+    File::Copy::copy($value->{handle}, $fs_file->stringify);    # File::Copy doesn't like Path::Class (or any for that matter) objects
 
     $self->_file_column_callback($value, $self, $column);