Changeset 19222

Show
Ignore:
Timestamp:
23.04.2009 13:56:22 (10 years ago)
Author:
kjdon
Message:

added a check for directory in can_process_this_file - if a directory has a file extension (eg from downloaded files) then it can possibly be recognized by a plugin that isn't supposed to process it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/BasePlugin.pm

    r18591 r19222  
    203203    $self->{'cover_image'} = 1; # cover image is on by default 
    204204    $self->{'cover_image'} = 0 if ($self->{'no_cover_image'}); 
     205    $self->{'can_process_directories'} = 0; 
    205206    #$self->{'option_list'} = $hashArgOptLists->{"OptList"}; 
    206207     
     
    487488    my ($filename) = @_; 
    488489 
     490    if (-d $filename && !$self->{'can_process_directories'}) { 
     491    return 0; 
     492    } 
    489493    if ($self->{'process_exp'} ne "" && $filename =~ /$self->{'process_exp'}/) { 
    490494    return 1;