Skip to content

reload_dirs does not work as expected when watchfiles is installed #2666

@tri-dataxight

Description

@tri-dataxight

Initial Checks

  • I confirm this was discussed, and the maintainers suggest I open an issue.
  • I'm aware that if I created this issue without a discussion, it may be closed without a response.

Discussion Link

https://github.com/encode/uvicorn/pull/2598

Description

From #2598, the reload_dirs works as expected
However, when there is watchfiles installed, reload_dirs still includes all files in Path.cwd()

Python, Uvicorn & OS Version

0.34.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions