r/OfficeScripts • u/mintos • Mar 05 '13
[SUBMISSION] Fixing bugs in QuickClean.py - Can you pull from my fork?
https://github.com/mintojoseph/QuickClean.py
4
Upvotes
r/OfficeScripts • u/mintos • Mar 05 '13
2
u/[deleted] Mar 05 '13 edited Mar 05 '13
My first thoughts on refactoring would be to replace the lower half with something like this (untested):
And after this investigate optional(?) mimetypes. I'm not sure why 'shutil.copy' was used in the original--the only time when its necessary to physically copy and delete huge numbers of bytes is when you're moving between filesystems/devices.
1
u/mintos Mar 05 '13
I assume this is the proper way to contribute.. Let me know if not.. I do not see a pull request button in https://github.com/shayekharjan/QuickClean.py