IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27179


Ignore:
Timestamp:
Mar 3, 2010, 5:21:24 PM (16 years ago)
Author:
Paul Price
Message:

file_exists should not only check that there's an instance in Nebulous, but that the file is on disk too.

File:
1 edited

Legend:

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

    r27092 r27179  
    590590    my $scheme = file_scheme($name); # The scheme, e.g., file://, path://
    591591    if (defined $scheme and lc($scheme) eq 'neb') {
    592         my $found = eval { $self->nebulous->find_instances( $name ); };
    593         ( carp "Unable to find instances of Nebulous handle $name" and return undef ) if $@;
    594         return (defined $found ? 1 : 0);
     592        my $found = eval { $self->nebulous->find( $name ); };
     593        ( carp "Unable to find instance of Nebulous handle $name" and return undef ) if $@;
     594        return 0 unless defined $found;
     595        return (-f $found);
    595596    }
    596597
Note: See TracChangeset for help on using the changeset viewer.