Changeset 3780
- Timestamp:
- Sep 25, 2007, 1:20:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4-stable/src/plugins/core/net/sf/basedb/plugins/PackedFileExporter.java
r3675 r3780 376 376 // Prepare for compression 377 377 String rootPath = rootDir.getPath().toString(); 378 if (!rootPath.endsWith("/")) rootPath += "/"; 378 379 out.setMimeType(packer.getMimeType()); 379 380 out.setFilename(generateDefaultName(packer, rootDir, itemsToPack)); … … 405 406 406 407 // Remove rootPath from entryPath 407 entryPath = entryPath.substring(rootPath.length() +1);408 entryPath = entryPath.substring(rootPath.length()); 408 409 409 410 // Update progress … … 657 658 private String generateDefaultPath(FilePacker packer, Directory rootDir, Collection<Nameable> selectedItems) 658 659 { 659 String defaultPath = rootDir == null ? "~/" : rootDir.getPath().toString() + "/"; 660 String defaultPath = rootDir == null ? "~/" : rootDir.getPath().toString(); 661 if (!defaultPath.endsWith("/")) defaultPath += "/"; 660 662 defaultPath += generateDefaultName(packer, rootDir, selectedItems); 661 663 return defaultPath;
Note: See TracChangeset
for help on using the changeset viewer.