Ignore:
Timestamp:
2013-05-29T20:41:13+12:00 (11 years ago)
Author:
ak19
Message:

Using the recommended FileUtils.pm methods in place of the deprecated utils.pm methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/util.pm

    r27374 r27509  
    2727
    2828use strict;
     29use FileUtils;
    2930
    3031use Encode;
     
    238239
    239240    $tmp_dirname = &FileUtils::filenameConcatenate($tmp_dirname, "tmp");
    240     &util::mk_dir($tmp_dirname) if (!-e $tmp_dirname);
     241    &FileUtils::makeDirectory($tmp_dirname) if (!-e $tmp_dirname);
    241242
    242243    # add the timestamp into the path otherwise we can run into problems
     
    250251    $i++;
    251252    }
    252     &util::mk_dir($tmp_dirname);
     253    &FileUtils::makeDirectory($tmp_dirname);
    253254 
    254255    return $tmp_dirname;
Note: See TracChangeset for help on using the changeset viewer.