Index: /trunk/Nebulous-Server/bin/neb-addvol
===================================================================
--- /trunk/Nebulous-Server/bin/neb-addvol	(revision 16314)
+++ /trunk/Nebulous-Server/bin/neb-addvol	(revision 16315)
@@ -3,5 +3,5 @@
 # Copyright (C) 2005-2008  Joshua Hoblitt
 #
-# $Id: neb-addvol,v 1.7 2008-01-22 21:40:39 jhoblitt Exp $
+# $Id: neb-addvol,v 1.8 2008-02-05 23:14:22 eugene Exp $
 
 use strict;
@@ -13,4 +13,5 @@
 use DBI;
 use Nebulous::Server::SQL;
+use URI::file;
 use URI;
 
@@ -51,5 +52,5 @@
 print "Checking URI...";
 
-my $path = URI->new($uri)->file;
+my $path = URI->new($uri)->path;
 unless (-d $path) {
     die "path: $path dirived from URI: $uri does not exist";
Index: /trunk/Nebulous/bin/neb-addvol
===================================================================
--- /trunk/Nebulous/bin/neb-addvol	(revision 16314)
+++ /trunk/Nebulous/bin/neb-addvol	(revision 16315)
@@ -3,5 +3,5 @@
 # Copyright (C) 2005-2008  Joshua Hoblitt
 #
-# $Id: neb-addvol,v 1.7 2008-01-22 21:40:39 jhoblitt Exp $
+# $Id: neb-addvol,v 1.8 2008-02-05 23:14:22 eugene Exp $
 
 use strict;
@@ -13,4 +13,5 @@
 use DBI;
 use Nebulous::Server::SQL;
+use URI::file;
 use URI;
 
@@ -51,5 +52,5 @@
 print "Checking URI...";
 
-my $path = URI->new($uri)->file;
+my $path = URI->new($uri)->path;
 unless (-d $path) {
     die "path: $path dirived from URI: $uri does not exist";
