Ignore:
Timestamp:
2013-05-06T15:29:38+12:00 (11 years ago)
Author:
jmt12
Message:

Moving the critical file-related functions (copy, rm, etc) out of util.pm into their own proper class FileUtils. Use of the old functions in util.pm will prompt deprecated warning messages. There may be further functions that could be moved across in the future, but these are the critical ones when considering supporting other filesystems (HTTP, HDFS, WebDav, etc). Updated some key files to use the new functions so now deprecated messages thrown when importing/building demo collection 'out of the box'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/MetadataXMLPlugin.pm

    r25094 r27306  
    9595use extrametautil;
    9696use util;
     97use FileUtils;
    9798use metadatautil;
    9899
     
    216217    my ($pluginfo, $base_dir, $file, $block_hash, $metadata, $gli) = @_;
    217218   
    218     my $filename_full_path = &util::filename_cat($base_dir, $file);
     219    my $filename_full_path = &FileUtils::filenameConcatenate($base_dir, $file);
    219220    return undef unless $self->can_process_this_file($filename_full_path);   
    220221
     
    244245    $processor, $gli, $aux) = @_;
    245246
    246     my $filename = &util::filename_cat($base_dir, $file);
     247    my $filename = &FileUtils::filenameConcatenate($base_dir, $file);
    247248    return undef unless $self->can_process_this_file($filename);   
    248249   
Note: See TracChangeset for help on using the changeset viewer.