#34720: BaseReloader.watch_dir() incorrectly checks for existence of path
-----------------------------+---------------------------------------
Reporter: Josh Thomas | Owner: Josh Thomas
Type: Bug | Status: closed
Component: Utilities | Version: 4.2
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------
Comment (by Jeff Triplett):
Apologies if my note/solution distracted anyone from the original bug
report. What was throwing us off is that it seems like `path.absolute()`
will never raise an `FileNotFoundError` error.
```
> from pathlib import Path
> path = Path("i-do-not-exist.nope")
> path.absolute()
> PosixPath('/app/i-do-not-exist.nope')
```
I see your note about permissions, but I'm kind of surprised this code
does anything.
--
Ticket URL: <https://code.djangoproject.com/ticket/34720#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018973d46089-fd15fa24-9c1c-46ec-8427-bad2a94c72ee-000000%40eu-central-1.amazonses.com.