Changeset 13180


Ignore:
Timestamp:
2006-10-27T17:04:20+13:00 (18 years ago)
Author:
mdewsnip
Message:

Now checks that the directory doesn't already exist before trying to create it in upload_collection_file (was causing errors in the Apache error_log file).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/cgi-bin/gliserver.pl

    r13179 r13180  
    731731
    732732    my $directory_path = &util::filename_cat($collection_directory, $directory);
    733     &util::mk_dir($directory_path);
    734     if (!-e $directory_path) {
    735     $gsdl_cgi->generate_error("Could not create directory $directory_path.");
     733    if (!-d $directory_path) {
     734    &util::mk_dir($directory_path);
     735    if (!-d $directory_path) {
     736        $gsdl_cgi->generate_error("Could not create directory $directory_path.");
     737    }
    736738    }
    737739
Note: See TracChangeset for help on using the changeset viewer.