IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30455


Ignore:
Timestamp:
Feb 1, 2011, 3:07:54 PM (15 years ago)
Author:
bills
Message:

Allow files referenced in list to be nebulous paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStoreServer/scripts/dsreg

    r29743 r30455  
    338338                ## then copy or symlink the files into place
    339339                foreach my $ref (@files) {
    340                     my $src = (defined $abspath ? '' : "$datapath/") . "$ref->{file}";
     340                    my $src_path = (defined $abspath ? '' : "$datapath/") . "$ref->{file}";
    341341                    my $filename = fileparse($ref->{file}, ());
    342342                    my $dest = "$fileset_dir/$filename";
    343343
     344                    my $src = $ipprc->file_resolve($src_path);
     345                    if (!$src) {
     346                        print STDERR "failed to resolve file $src_path\n";
     347                        exit $PS_EXIT_SYS_ERROR;
     348                    }
    344349                    if ( !-e $src or !-r $src) {
    345350                        print STDERR "source file $src does not exist or is not accessible\n";
Note: See TracChangeset for help on using the changeset viewer.