This will probably break on darwin, where fs paths are utf-8 bytes, so it should go from common.py to windows.py:
473 if not isinstance(path, unicode):
----
The comment that starts with: # We are using this on windows and darwin. # For windows the logic is as follow: # ....
is still crap. The whole 9 lines of it, so it's not completely your fault, but it's crap. Let's rewrite it with something simpler like this:
# We need to manually check if the path is a folder, because # neither ReadDirectoryChangesW nor the FSEvents API tell us
Also the docstring in that function lies about "update the local subdir list".
---
« Back to merge proposal
This will probably break on darwin, where fs paths are utf-8 bytes, so it should go from common.py to windows.py:
473 if not isinstance(path, unicode):
----
The comment that starts with:
# We are using this on windows and darwin.
# For windows the logic is as follow:
# ....
is still crap. The whole 9 lines of it, so it's not completely your fault, but it's crap.
Let's rewrite it with something simpler like this:
# We need to manually check if the path is a folder, because angesW nor the FSEvents API tell us
# neither ReadDirectoryCh
Also the docstring in that function lies about "update the local subdir list".
---