1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2024-11-01 14:25:59 +00:00
send2trash/send2trash
Andrew Senetar d078554052
Windows Performance Improvement & Multi-Item support (#43)
* Initial IFileOperation for Windows

- Try using IFileOperation instead of SHFileOperation
  - Use pywin32 to accomplish this
  - Implement fallback when pywin32 not available
- Handles paths like `C:\` just fine bu the `\\?\` paths in the test
  cause issue
- Add batching for IFileOperation version (performance)
- Minor formatting applied by editor

* Fix issue with paths starting with \\?\

- Strip these characters off if present just like old implementation

* Add windows version check, legacy list support

- Add check for windows version for IFileOperation
- Add list support to legacy version
- Remove some debugging code
- Fix bug in path converson

Not sure if there is a better way to layout this file

* Split plat_win into legacy and modern

* Update other platforms for list support

Formatter also ran on these so some other minor changes.

* Add unit tests for multi-file calls
2020-06-03 12:49:41 -04:00
..
__init__.py Define TrashPermissionError (#21) 2018-02-06 17:28:47 -05:00
__main__.py Create __main__.py (Fixes #15) (#38) 2020-05-27 07:52:00 -04:00
compat.py Fix newly-introduced crash under Windows 2017-08-07 22:51:37 -04:00
exceptions.py Define TrashPermissionError (#21) 2018-02-06 17:28:47 -05:00
plat_gio.py Windows Performance Improvement & Multi-Item support (#43) 2020-06-03 12:49:41 -04:00
plat_osx.py Windows Performance Improvement & Multi-Item support (#43) 2020-06-03 12:49:41 -04:00
plat_other.py Windows Performance Improvement & Multi-Item support (#43) 2020-06-03 12:49:41 -04:00
plat_win_legacy.py Windows Performance Improvement & Multi-Item support (#43) 2020-06-03 12:49:41 -04:00
plat_win_modern.py Windows Performance Improvement & Multi-Item support (#43) 2020-06-03 12:49:41 -04:00
plat_win.py Windows Performance Improvement & Multi-Item support (#43) 2020-06-03 12:49:41 -04:00