IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27225 for trunk


Ignore:
Timestamp:
Mar 9, 2010, 12:15:41 PM (16 years ago)
Author:
Paul Price
Message:

Demand that a file have non-zero size as part of test for existence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Config.pm

    r27179 r27225  
    593593        ( carp "Unable to find instance of Nebulous handle $name" and return undef ) if $@;
    594594        return 0 unless defined $found;
    595         return (-f $found);
    596     }
    597 
    598     return (-f $self->file_resolve($name));
     595        return (-f $found and -s $found);
     596    }
     597
     598    return (-f $self->file_resolve($name) and -s $found);
    599599}
    600600
Note: See TracChangeset for help on using the changeset viewer.