IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29127


Ignore:
Timestamp:
Sep 8, 2010, 2:45:04 PM (16 years ago)
Author:
bills
Message:

Add argument to dsgetfileset to allow the user to specify the "first file" to be downloaded. Useful when errors occur.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsgetfileset

    r27905 r29127  
    1717use File::Basename qw( basename );
    1818
    19 my ($uri, $outdir, $timeout, $skip_checks, $unpack, $no_proxy, $verbose);
     19my ($uri, $outdir, $timeout, $skip_checks, $unpack, $first_file, $no_proxy, $verbose);
    2020
    2121GetOptions(
     
    2525    'skip-checks'       => \$skip_checks,
    2626    'unpack'            => \$unpack,
     27    'first-file=s'      => \$first_file,
    2728    'no-proxy'          => \$no_proxy,
    2829    'verbose|v'         => \$verbose,
     
    7576    }
    7677
     78    if ($first_file) {
     79        next if $fs->fileid ne $first_file;
     80        $first_file = undef;
     81    }
    7782    my $uri = $fs->uri;
    7883    my $base = basename($uri);
     
    155160Uncompress fits files if compressed
    156161
     162=item * --first-file <fileid>
     163
     164Skip files prior to fileid in fileset
     165
    157166Optional.
    158167
Note: See TracChangeset for help on using the changeset viewer.