- Timestamp:
- 2005-05-16T15:21:42+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/GathererApplet.java
r9883 r9884 167 167 } 168 168 169 /*169 170 170 File tmp_dir = new File(Utility.TMP_DIR); 171 171 if (!tmp_dir.exists()) { 172 172 tmp_dir.mkdir(); 173 173 } 174 */ 174 175 175 176 176 File metadata_directory = new File(Utility.METADATA_DIR); … … 265 265 266 266 // set up output stream for zip download 267 String collect_directory_path = Gatherer.getCollectDirectoryPath(); 268 String zip_fname = collect_directory_path + col_name + ".zip"; 267 String col_dir; 268 if (col_name.startsWith("/")) { 269 col_dir = Configuration.gsdl_path; 270 } 271 else { 272 col_dir = Gatherer.getCollectDirectoryPath(); 273 } 274 275 String zip_fname = col_dir + col_name + ".zip"; 269 276 FileOutputStream zip_fos = new FileOutputStream(zip_fname); 270 277 BufferedOutputStream zip_bfos = new BufferedOutputStream(zip_fos); … … 295 302 final int maxBufferSize = 1024; 296 303 297 String collect_directory_path = Gatherer.getCollectDirectoryPath(); 298 String zip_fname = collect_directory_path + col_name + ".zip"; 304 String col_dir; 305 if (col_name.startsWith("/")) { 306 col_dir = Configuration.gsdl_path; 307 } 308 else { 309 col_dir = Gatherer.getCollectDirectoryPath(); 310 } 311 312 String zip_fname = col_dir + col_name + ".zip"; 299 313 String upload_cgi = Gatherer.cgiBase + "upload"; 300 314 -
trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r9883 r9884 95 95 static final public String GLI_ARCHIVE = "GLI.jar"; 96 96 static final public String GLI_EXTENSION = ".col"; 97 98 static public String TMP_DIR = BASE_DIR + "tmp" + File.separator; 99 97 100 /** Definition of an important directory name, in this case the images directory for the collection. */ 98 101 static final public String IMAGES_DIR = "images" + File.separator;
Note:
See TracChangeset
for help on using the changeset viewer.