Changeset 28563 for main/trunk/greenstone2/perllib/plugins/TextPlugin.pm
- Timestamp:
- 2013-10-31T11:29:37+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/TextPlugin.pm
r17739 r28563 163 163 $tmp_dirname = $ENV{'GSDLHOME'}; 164 164 } 165 $tmp_dirname = & util::filename_cat($tmp_dirname, "tmp");166 & util::mk_dir($tmp_dirname) if (!-e $tmp_dirname);165 $tmp_dirname = &FileUtils::filenameConcatenate($tmp_dirname, "tmp"); 166 &FileUtils::makeDirectory($tmp_dirname) if (!-e $tmp_dirname); 167 167 168 168 # convert to utf-8 otherwise we have problems with the doc.xml file … … 171 171 172 172 $suffix = lc($suffix); 173 my $tmp_filename = & util::filename_cat($tmp_dirname, "$tailname$suffix");173 my $tmp_filename = &FileUtils::filenameConcatenate($tmp_dirname, "$tailname$suffix"); 174 174 175 175 # Make sure we have the absolute path to the input file … … 181 181 # Now make the softlink, so we don't accidentally damage the input file 182 182 # softlinking creates a symbolic link to (or, if that's not possible, it makes a copy of) the original 183 & util::soft_link($input_filename, $tmp_filename, $ensure_path_absolute);183 &FileUtils::softLink($input_filename, $tmp_filename, $ensure_path_absolute); 184 184 185 185 my $verbosity = $self->{'verbosity'}; … … 191 191 192 192 #my $output_filename = $tailname$output_ext; #output_ext has to be html! 193 my $output_filename = & util::filename_cat($tmp_dirname, $tailname.".html");193 my $output_filename = &FileUtils::filenameConcatenate($tmp_dirname, $tailname.".html"); 194 194 195 195 # Read contents of text file line by line into an array … … 227 227 228 228 # remove the copy of the original file/remove the symbolic link to original file 229 & util::rm($tmp_filename);229 &FileUtils::removeFiles($tmp_filename); 230 230 231 231 return $output_filename; # return the output file path
Note:
See TracChangeset
for help on using the changeset viewer.