ClipGrab should check available space on filesystem and return codes
Currently I use net-misc/clipgrab-3.4.2 on amd64 Linux with normally mounted in RAM 2GB /tmp partition.
On download above 1GB video I've find the following issue:
The fetch process ternimates normally.
After that ClipGrab starts concatinating in temporary file in /tmp, although there isn't enough space for it.
On finish concatenating it ignores errors and moves rusult (corrupted) file into target, after that removes all temporary files.
I expect here the following behaviour:
1. First, prior to fetching ClibGrab should check is there enough space in /tmp.
It even starts fetch of this particular video after remounting /tmp to 1GB partition (i.e. even fetch will fail).
Maybe it will be reasonable to make TEMPDIR optional, not hardcoded to /tmp.
- After fetch ClipGrab should analyze return code of concatenation process. Only on success it should move result file to target (which also can fail, so we need to analyze also this return code) and only on success clean temporary files (on failure — remove intermediate concatenation file).
Maybe ClipGrab should provide an option to concatenate directly to output file.
P.S. Excuse me my English, but I don't know German at all.