IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17873


Ignore:
Timestamp:
May 30, 2008, 4:41:17 PM (18 years ago)
Author:
jhoblitt
Message:

make neb-ls non-recursive by default and add a --recursive flag

Location:
trunk/Nebulous
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/Changes

    r17846 r17873  
    22
    330.09
     4    - make neb-ls non-recursive by default and add a --recursive flag
    45    - add neb-copies util
    56    - move print_all_xattrs(), print_xattrs(), write_xattrs(), delete_xattrs(),
  • trunk/Nebulous/bin/neb-ls

    r16263 r17873  
    33# Copyright (C) 2007-2008  Joshua Hoblitt
    44#
    5 # $Id: neb-ls,v 1.5 2008-01-30 00:15:18 jhoblitt Exp $
     5# $Id: neb-ls,v 1.6 2008-05-31 02:41:17 jhoblitt Exp $
    66
    77use strict;
     
    1616use Pod::Usage qw( pod2usage );
    1717
    18 my ($server, $long);
     18my ($server, $long, $recursive);
    1919
    2020$server = $ENV{'NEB_SERVER'} unless $server;
     
    2222GetOptions(
    2323    'server|s=s'    => \$server,
     24    'recursive|r'   => \$recursive,
    2425    'l|1'           => \$long,
    2526) || pod2usage( 2 );
     
    4041# default to listing everything (bad idea?)
    4142$pattern ||= ".*";
     43
     44if ($recursive) {
     45    $pattern = "^" . $pattern . ".*";
     46} else {
     47    $pattern = "^" . $pattern . "\$";
     48}
    4249
    4350my $keys = $neb->find_objects($pattern);
Note: See TracChangeset for help on using the changeset viewer.