Ignore:
Timestamp:
1999-12-07T10:47:54+13:00 (24 years ago)
Author:
sjboddie
Message:

hard_link returns if link destination already exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/util.pm

    r721 r812  
    264264
    265265    # a few sanity checks
    266     if (!-e $src) {
     266    if (-e $dest) {
     267    # destination file already exists
     268    return;
     269    }
     270    elsif (!-e $src) {
    267271    print STDERR "util::hard_link source file $src does not exist\n";
    268272    return;
Note: See TracChangeset for help on using the changeset viewer.