mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-29 21:14:55 +02:00
Remove a no longer used function, so it doesn't get stuck in the API forever.
This commit is contained in:
@@ -89,28 +89,6 @@ class IntermediateSymbolTable(interfaces.symbols.SymbolTableInterface):
|
||||
# Inherit
|
||||
super().__init__(context, config_path, name, native_types or self._delegate.natives)
|
||||
|
||||
@classmethod
|
||||
def open(cls, context, config_path, name, relative_isf, native_types = None):
|
||||
"""Constructs an IntermediateSymbolTable based on a relative path rather than a full URL
|
||||
|
||||
This will attempt to load .json and .json.xz files
|
||||
"""
|
||||
search_paths = constants.SYMBOL_BASEPATHS
|
||||
isf_url = None
|
||||
for path in search_paths:
|
||||
# Favour specific name, over uncompressed JSON (user-editable), over compressed JSON over uncompressed files
|
||||
for extension in ['', '.json', '.json.xz']:
|
||||
test = os.path.join(path, relative_isf + extension)
|
||||
if os.path.exists(test):
|
||||
isf_url = pathlib.Path(test).as_uri()
|
||||
break
|
||||
if isf_url:
|
||||
break
|
||||
else:
|
||||
raise FileNotFoundError(
|
||||
"ISF path fragment {} could not be found in standard search paths".format(relative_isf))
|
||||
return cls(context, config_path, name, isf_url, native_types)
|
||||
|
||||
def _closest_version(self, version, versions):
|
||||
"""Determines the highest suitable handler for specified version format
|
||||
|
||||
|
||||
Reference in New Issue
Block a user