binaryninja.interaction.get_directory_name_input

get_directory_name_input(prompt, default_name='')[source]

get_directory_name_input prompts the user for a directory name to save as, optionally providing a default_name.

Note: This API function differently on the command-line vs the UI. In the UI a pop-up is used. On the command-line a simple text prompt is used. The UI uses the native window pop-up for file selection.

Parameters:
  • prompt (str) – Prompt to display.
  • default_name (str) – Optional, default directory name.
Return type:

str

Example:
>>> get_directory_name_input("prompt")
prompt dirname
'dirname'