organize
organize copied to clipboard
Speed issue with v2, and issue with losing modified date/time.
Heya,
I updated my config for v2 and noticed there's a big diffence in speed, what took a few seconds in v1 is taking minutes in v2, also the modified date/time gets changed to the current time.
I'm probably doing something wrong in my config.
Expected behavior: Speed of task to be the same, and not have the modified date/time be changed to the current time.
Environment:
- OS: Windows 10 - 21H2 - x64
- Python Version: v3.10.3
- Organize Version: v2.1.2
Your config file
rules:
- locations: "D:/GoPro/"
subfolders: true
filters:
- extension:
- mp4
- lastmodified
actions:
- move: "D:/GoPro Sorted/{lastmodified.strftime('%Y-%m-%d')}/"
Hey, you're hitting an unoptimized code path in the underlyingpyfilesystem library. I submitted a PR to pyfilesystem which should fix this (https://github.com/PyFilesystem/pyfilesystem2/pull/523). So this should be fixed as soon as they do a new release.
Oh OK, thanks for letting me know, and thanks for the app :)
PyFilesystem did release a new version and this should be fixed now. Can you check again? Please make sure to run pip3 install -U fs before or install the latest organize version.
Edit: Seems I was wrong, speed issue isn't fixed, guess the files I tested were still in ram.
The latest version of fs on pypi.org is 2.4.16 (Released: May 2, 2022), so that makes sense.
Heya, sorry for the late reply.
Just checked and the speed issue seems to be fixed now, but the issue with the modified date/time is still there though.
It also confuse me a lot.
Hi and thank you for a great tool. Does anyone know how to fix the issue with modified/create datetime changed to current on copy/move actions?
I just released v3 as a pre-release (infos in the repo's readme).
The speed issues and strange metadata issues came from the pyfilesystem library which is now removed completely.
@Nurple running your config should take seconds again!
Heya, sorry for late reply, all seems fine now. Thanks.
Np, thanks for the update!