- Timestamp:
- Mar 29, 2010, 3:55:49 PM (16 years ago)
- Location:
- branches/eam_branches/20100225
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
PS-IPP-Config/lib/PS/IPP/Config.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225
- Property svn:mergeinfo changed
-
branches/eam_branches/20100225/PS-IPP-Config/lib/PS/IPP/Config.pm
r26516 r27517 590 590 my $scheme = file_scheme($name); # The scheme, e.g., file://, path:// 591 591 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); 595 } 596 597 return (-f $self->file_resolve($name)); 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 and -s $found); 596 } 597 598 return (-f $self->file_resolve($name) and -s $self->file_resolve($name)); 598 599 } 599 600 … … 655 656 my $self = shift; # Configuration object 656 657 my $name = shift; # File name to check 658 my $force = shift; # pass force flag to the delete method 657 659 my $status; 658 660 659 661 my $scheme = file_scheme($name); # The scheme, e.g., file://, path:// 660 662 if (defined $scheme and lc($scheme) eq 'neb') { 661 $status = eval { $self->nebulous->delete( $name ); };663 $status = eval { $self->nebulous->delete( $name, $force ); }; 662 664 ( carp "Unable to delete Nebulous handle $name" and return undef ) if $@; 663 665 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
