We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64bf95d commit 172f51cCopy full SHA for 172f51c
python/__init__.py
@@ -462,6 +462,19 @@ def connect_vscode_debugger(port=5678):
462
debugpy.wait_for_client()
463
execute_on_main_thread(lambda: debugpy.debug_this_thread())
464
465
+def get_system_cache_directory() -> Optional[str]:
466
+ """
467
+ Returns Binary Ninja's system cache directory on the system.
468
+
469
+ Supported default locations:
470
+ - macOS: ~/Library/Caches/Binary Ninja
471
+ - Linux: $XDG_CACHE_HOME/Binary Ninja or ~/.cache/Binary Ninja
472
+ - Windows: %LOCALAPPDATA%/Binary Ninja/cache
473
474
+ :return: Returns a string containing the system cache directory, or None on failure.
475
476
+ return core.BNGetSystemCacheDirectory()
477
478
479
class UIPluginInHeadlessError(Exception):
480
"""
0 commit comments