Changeset 8096
- Timestamp:
- 2004-09-02T14:35:08+12:00 (20 years ago)
- Location:
- trunk/gsdl/cgi-bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/cgi-bin/download
r7957 r8096 18 18 $dir = "" if ((!defined $dir) || ($dir eq ".")); 19 19 20 21 $gsdl_cgi->checked_chdir("$gsdlhome/collect"); 20 if ($col =~ m/^\//) { 21 # leading / at start denotes special "cols" such as "/tmp" 22 $gsdl_cgi->checked_chdir("$gsdlhome"); 23 $col =~ s/^\///; 24 } 25 else { 26 $gsdl_cgi->checked_chdir("$gsdlhome/collect"); 27 } 22 28 23 29 # Change this to Java zip?? -
trunk/gsdl/cgi-bin/upload
r7957 r8096 25 25 my $zip_fname = "$col.zip"; 26 26 27 $gsdl_cgi->checked_chdir("$gsdlhome/collect/"); 27 if ($col =~ m/^\//) { 28 # leading / at start denotes special "cols" such as "/tmp" 29 $gsdl_cgi->checked_chdir("$gsdlhome"); 30 $col =~ s/^\///; 31 } 32 else { 33 $gsdl_cgi->checked_chdir("$gsdlhome/collect"); 34 } 35 28 36 my $col_dir = "$col/$dir"; # Unix specific 29 37 $gsdl_cgi->rm_rf($col_dir);
Note:
See TracChangeset
for help on using the changeset viewer.