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/plugouts/GreenstoneXMLPlugout.pm

    r22839 r27306  
    3232eval {require bytes};
    3333use util;
     34use FileUtils;
    3435use BasePlugout;
    3536use docprint;
     
    7273    &util::mk_all_dir ($output_dir) unless -e $output_dir;
    7374   
    74     my $working_dir = &util::filename_cat ($output_dir, $doc_dir);   
     75    my $working_dir = &FileUtils::filenameConcatenate($output_dir, $doc_dir);   
    7576    &util::mk_all_dir ($working_dir) unless -e $working_dir;
    7677   
     
    7980    $self->process_metafiles_metadata ($doc_obj);
    8081
    81     my $output_file = util::filename_cat ($working_dir, "doc.xml");
     82    my $output_file = &FileUtils::filenameConcatenate($working_dir, "doc.xml");
    8283   
    8384    $self->open_xslt_pipe($output_file, $self->{'xslt_file'});
     
    107108    }
    108109   
    109     $self->{'short_doc_file'} = util::filename_cat ($doc_dir, "doc.xml"); 
     110    $self->{'short_doc_file'} = &FileUtils::filenameConcatenate($doc_dir, "doc.xml"); 
    110111   
    111112    $self->store_output_info_reference($doc_obj);
Note: See TracChangeset for help on using the changeset viewer.