Index: /trunk/DataStore/MANIFEST
===================================================================
--- /trunk/DataStore/MANIFEST	(revision 14878)
+++ /trunk/DataStore/MANIFEST	(revision 14879)
@@ -22,4 +22,5 @@
 scripts/dsleech
 scripts/dsproductls
+scripts/dsrootls
 t/00_distribution.t
 t/01_load.t
Index: /trunk/DataStore/scripts/dsrootls
===================================================================
--- /trunk/DataStore/scripts/dsrootls	(revision 14879)
+++ /trunk/DataStore/scripts/dsrootls	(revision 14879)
@@ -0,0 +1,118 @@
+#!/usr/bin/env perl
+
+# Copyright (C) 2006-2007  Joshua Hoblitt
+#
+# $Id: dsrootls,v 1.1 2007-09-18 04:15:09 jhoblitt Exp $
+
+use strict;
+use warnings FATAL => qw( all );
+
+use vars qw( $VERSION );
+$VERSION = '0.01';
+
+use DataStore;
+
+use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
+use Pod::Usage qw( pod2usage );
+
+my ($uri);
+
+GetOptions(
+    'uri|u=s'           => \$uri,
+) or pod2usage( 2 );
+
+pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
+pod2usage(
+    -msg => "Required options: --uri",
+    -exitval => 3,
+) unless defined $uri;
+
+my %p = (
+    uri     => $uri,
+);
+
+my $response = DataStore::Root->new(%p)->request;
+
+die "request failed" unless defined $response;
+die "request failed: ", $response->status_line unless $response->is_success;
+
+# file retreival succeed
+
+my $data = $response->data;
+
+unless ($data) {
+    warn "no products found";
+    exit(0);
+}
+
+print "# uri product last time type desc\n";
+foreach my $prod (@$data) {
+    print $prod->uri, " ",
+          $prod->product, " ",
+          $prod->last_fileset, " ",
+          $prod->last_datetime, " ",
+          $prod->type, " ",
+          $prod->desc, "\n";
+}
+
+__END__
+
+=pod
+
+=head1 NAME
+
+dsrootls - list all the Product under the "root" of a DataStore server
+
+=head1 SYNOPSIS
+
+    dsrootls --uri <uri> 
+
+=head1 DESCRIPTION
+
+=head1 OPTIONS
+
+=over 4
+
+=item * --uri|-u <uri>
+
+The URI of the file to be retrieved.
+
+=back
+
+=head1 CREDITS
+
+Just me, myself, and I.
+
+=head1 SUPPORT
+
+Please contact the author directly via e-mail.
+
+=head1 AUTHOR
+
+Joshua Hoblitt <jhoblitt@cpan.org>
+
+=head1 COPYRIGHT
+
+Copyright (C) 2006-2007  Joshua Hoblitt.  All rights reserved.
+
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along with
+this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+Place - Suite 330, Boston, MA  02111-1307, USA.
+
+The full text of the license can be found in the L<perlgpl> Pod as supplied
+with Perl 5.8.1 and later.
+
+=head1 SEE ALSO
+
+L<DataStore>, L<DataStore::Product>, L<DataStore::FileSet>
+
+=cut
