New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary code of dirsnapshot.py #930
Conversation
e631116
to
8eca82c
Compare
@BoboTiG PTAL |
Thanks @QuantumEnergyE ! |
@QuantumEnergyE @BoboTiG : now having following error and believe this removal may be the root for it - in version 2.2.1:
|
@chadgates what function do you pass to the |
@BoboTiG : PollingObserverVFS(stat=os.stat, listdir=os.listdir), should I not do that ? |
As those arguments are/were the defaults values, not need to set them. Simply remove all of them: PollingObserverVFS() |
When I changed code to: |
My bad, I didn't check the class itself: PollingObserverVFS(os.stat, os.scandir) I don't why those are positional arguments |
That did the job! Thanks. |
if isinstance(entry, str)
is used to distinguishlistdir
fromscandir
. Nowscandir
is used by default, we can delete this code.