mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-08-28 05:20:21 +00:00
GP-2550 don't fail when 000admin directory is missing
This commit is contained in:
parent
e835f91e50
commit
09175677d1
|
@ -15,11 +15,12 @@
|
|||
*/
|
||||
package pdb.symbolserver;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.io.FilenameUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
|
@ -254,8 +255,13 @@ public class SymbolServerService {
|
|||
|
||||
if (SymbolStore.isCompressedFilename(symbolFileLocation.getPath())) {
|
||||
File cabFile = localSymbolStore.getFile(symbolFileLocation.getPath());
|
||||
File temporaryExtractFile = new File(symbolStore.getAdminDir(),
|
||||
"ghidra_cab_extract_tmp_" + System.currentTimeMillis());
|
||||
File adminDir = symbolStore.getAdminDir();
|
||||
if (!adminDir.isDirectory()) {
|
||||
// if the admin dir is missing, use the cab file's directory
|
||||
adminDir = cabFile.getParentFile();
|
||||
}
|
||||
File temporaryExtractFile =
|
||||
new File(adminDir, "ghidra_cab_extract_tmp_" + System.currentTimeMillis());
|
||||
|
||||
Msg.debug(this,
|
||||
logPrefix() + ": decompressing file " + symbolFileLocation.getLocationStr());
|
||||
|
|
Loading…
Reference in a new issue