Commit graph

36 commits

Author SHA1 Message Date
d4ad110ff1
Add normalize_compression. 2021-09-16 20:58:24 -07:00
7efdcdcdbe
Fix handling of basename=None. 2021-09-16 20:50:31 -07:00
91527aa012
Prevent double .rar extension if user already put it in basename. 2021-08-31 02:05:43 -07:00
88e127c7b1
Add command line flag -dh, archive files in use by other programs. 2021-08-31 02:04:33 -07:00
f52fc53813
Rearrange command line flags, one per line. 2021-08-31 02:04:06 -07:00
39e0aaed71
Various lint appeasements. 2021-08-09 17:37:19 -07:00
3ce8b91630
Fix --compression command line argument. 2021-07-23 15:54:07 -07:00
d5a7fdb467
Migrate scripts to operatornotify.main_decorator. 2021-06-21 22:20:39 -07:00
5ce6cf8425
Migrate scripts to vlogging.main_decorator. 2021-06-21 22:11:19 -07:00
87e733c4a2
Migrate scripts to main_level_by_argv. 2021-05-16 21:07:43 -07:00
4d90536329
Reduce default reserve space to 5gb. 2021-05-14 17:39:53 -07:00
fdfbf12fab
Delete backup_folder.py, add missing functionality to rarpar.py. 2021-05-07 21:15:05 -07:00
51188b30ee
Remove redundant argparse dest=, fix some lint issues. 2021-02-20 21:01:55 -08:00
6683ae110e
Use vlogging's main_fallback name feature. 2021-01-28 16:51:34 -08:00
1359ab040e Use subproctools.print_command. 2021-01-14 02:57:05 -08:00
a8314990f2 Use log.debug for reserved space message. 2021-01-14 02:57:05 -08:00
4b23d311c3 Add dictionary_size, --dictionary. 2020-11-20 02:21:24 -08:00
cbdc2e34d7 Remove leading underscore from normalize_percentage. 2020-11-20 02:21:24 -08:00
26b4a33292 Add a little more validation. 2020-11-20 02:21:20 -08:00
09ac7a4715 Add --solid. 2020-11-20 02:21:15 -08:00
555878e511 Add COMPRESSION_STORE, _MAX constants. 2020-11-20 02:21:15 -08:00
cea85b3556 Use subprocess instead of os.system for scripts, fix pythonw.
Previously, under Pythonw, a cmd window would open when rar/par was
run. I discovered the subprocess.CREATE_NO_WINDOW flag and thus moved
everything over to subprocess calls to take advantage of it.
2020-11-07 00:01:27 -08:00
ae4a9ae390 Fix RarExists glob check not looking in workdir, moveto. 2020-11-06 23:52:34 -08:00
ebcc62d765 Add RarExists exception. 2020-11-06 00:20:20 -08:00
907842d5cc Add os.sep to workdrive_drive splitdrive to fix disk usage reading.
Splitdrive returns "C:" on Windows and "" on Linux, and passing this
into disk_usage actually returns info about the cwd disk.
2020-10-29 15:53:03 -07:00
ae6954d573 Add compression, rar_profile arguments. 2020-10-23 07:52:57 -07:00
437d2bdd48 Move DOCSTRING above rarpar_argparse def. 2020-10-12 22:06:09 -07:00
55bd1d07a8 Fix some inconsistent help text formatting. 2020-10-12 21:59:02 -07:00
c0919242c2 Only add -r recurse flag if input path is directory.
I discovered an issue when the input path was a file, winrar was trying
to access a sibling directory (particularly $recycle.bin while on drive
root) and raising permission denied errors.
2020-08-23 22:21:36 -07:00
1d97479f41 Fix free_space calculating incorrectly when using mounted drives.
If the file is on a drive mounted to a path, it was previously
calculating the free space on the mount drive, instead of whatever
the moveto drive was.
2020-08-23 22:20:04 -07:00
57e56f3f02 Print error level if not 0. 2020-08-23 22:18:10 -07:00
2fc55ee330 Let RARCOMMAND take path and create derivatives by itself. 2020-08-23 22:17:50 -07:00
f812e65b80 Add argument --recycle to recycle input file after rarpar. 2020-06-24 22:27:12 -07:00
c8fc83dacf Add stricter requirement that callable returns 0 or None.
Not just any falsey value will do.
2020-06-24 22:26:27 -07:00
19ce9fea03 Raise custom NotEnoughSpace exception instead of IOError. 2020-06-22 17:41:51 -07:00
83d5993b66 Add rarpar.py. 2020-03-13 14:59:49 -07:00