Ignore:
Timestamp:
1999-02-02T22:59:55+13:00 (25 years ago)
Author:
rjmcnab
Message:

Fixed small bug.

File:
1 edited

Legend:

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

    r4 r136  
    66use BasPlug;
    77use plugin;
     8use util;
    89
    910
     
    3738
    3839    # see if this is a directory
    39     if (-d "$base_dir$file") {
     40    $dirname = &util::filename_cat ($base_dir, $file);
     41    if (-d $dirname) {
    4042
    4143    # read all the files in the directory
    42     opendir (DIR, "$base_dir$file") ||
    43         die "ERROR - couldn't read directory $base_dir$file\n";
     44    opendir (DIR, $dirname) ||
     45        die "ERROR - couldn't read directory $dirname\n";
    4446    @dir = readdir (DIR);
    4547    closedir (DIR);
     
    4951        if ($subfile !~ /^\.\.?$/) {
    5052        # note: metadata is not carried on to the next level
    51         my $tmp = "$file/$subfile";
    52         $tmp =~ s/^[\\\/]+|[\\\/]+$//g; # remove extra slashes
    53         &plugin::read ($pluginfo, $base_dir, $tmp, {}, $processor);
     53        &plugin::read ($pluginfo, $base_dir, &util::filename_cat($file, $subfile),
     54                   {}, $processor);
    5455        }
    5556    }
Note: See TracChangeset for help on using the changeset viewer.