Changeset 21981
- Timestamp:
- 2010-04-28T15:53:16+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/ConvertBinaryFile.pm
r21760 r21981 265 265 $tmp_dirname = $ENV{'GSDLHOME'}; 266 266 } 267 267 268 $tmp_dirname = &util::filename_cat($tmp_dirname, "tmp"); 268 269 &util::mk_dir($tmp_dirname) if (!-e $tmp_dirname); 269 270 271 # add the timestamp into the path otherwise we can run into problems 272 # if documents have the same name 273 my $timestamp = time; 274 my $time_tmp_dirname = &util::filename_cat($tmp_dirname, $timestamp); 275 $tmp_dirname = $time_tmp_dirname; 276 my $i = 1; 277 while (-e $tmp_dirname) { 278 $tmp_dirname = "$time_tmp_dirname$i"; 279 $i++; 280 } 281 &util::mk_dir($tmp_dirname); 282 270 283 # The following is not necessary and will cause problems with 271 284 # replacing_srcdoc_with_html in the GSDLremote case:
Note:
See TracChangeset
for help on using the changeset viewer.