Skip to content

Path

An input prompt that allows the user to enter a file path.

Example

Example

from inquirer_textual import prompts
from inquirer_textual.widgets.InquirerPath import PathType

if __name__ == '__main__':
    result = prompts.path('Output directory:', exists=True, path_type=PathType.FILE)
    print(result)