<#4494 [BUG] local pyflyte run should support s3 p...
# flytekit
c
#4494 [BUG] local pyflyte run should support s3 paths in FlyteDirectory Issue created by cosmicBboy ### Describe the bug This PR: https://github.com/flyteorg/flytekit/pull/1823/files introduced click types, introducing
DirParamType
. Unfortunately, this introduces a regression where local invocation of
pyflyte run
raises an error:
Copy code
Usage: pyflyte run flyte_llama/workflows.py publish_model [OPTIONS]

 Try 'pyflyte run flyte_llama/workflows.py publish_model --help' for help
╭─ Error ──────────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid value for '--model_dir': parameter should be a valid directory path,                         │
│ <s3://union-oc-production-demo/xx/fb05fc008c3cd48229c6-n1-0/e5fff9137a968fa4f79bc3bff890eaa7>          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯
### Expected behavior Supplying an s3 path should work. ### Additional context to reproduce No response ### Screenshots No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte