Commit Graph

15 Commits (844dc5894baf5f0b034ea9fc157b6dcc0d48dc81)

Author SHA1 Message Date
voussoir 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
voussoir ae4a9ae390 Fix RarExists glob check not looking in workdir, moveto. 2020-11-06 23:52:34 -08:00
voussoir ebcc62d765 Add RarExists exception. 2020-11-06 00:20:20 -08:00
voussoir 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
voussoir ae6954d573 Add compression, rar_profile arguments. 2020-10-23 07:52:57 -07:00
voussoir 437d2bdd48 Move DOCSTRING above rarpar_argparse def. 2020-10-12 22:06:09 -07:00
voussoir 55bd1d07a8 Fix some inconsistent help text formatting. 2020-10-12 21:59:02 -07:00
voussoir 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
voussoir 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
voussoir 57e56f3f02 Print error level if not 0. 2020-08-23 22:18:10 -07:00
voussoir 2fc55ee330 Let RARCOMMAND take path and create derivatives by itself. 2020-08-23 22:17:50 -07:00
voussoir f812e65b80 Add argument --recycle to recycle input file after rarpar. 2020-06-24 22:27:12 -07:00
voussoir 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
voussoir 19ce9fea03 Raise custom NotEnoughSpace exception instead of IOError. 2020-06-22 17:41:51 -07:00
voussoir 83d5993b66 Add rarpar.py. 2020-03-13 14:59:49 -07:00