Thank you for this sweet little gem! It is very useful to me. There is only one feature that I miss (unless I have really misunderstood): a way to close the files that get opened by <open_read> and <open_write>. Not that it's really important, but if you test for size on a trimmed file, for example, you won't be able to really test the size because the file gets closed (and therefore comes to a definite size) only after the end of the test (obviously too late).
I did not add this feature myself because I am not sure that I am not missing something here. However, it's a very easy patch and I will be glad to contribute it if it is deemed something useful.
Thank you for this sweet little gem! It is very useful to me. There is only one feature that I miss (unless I have really misunderstood): a way to close the files that get opened by
<open_read>
and<open_write>
. Not that it's really important, but if you test for size on a trimmed file, for example, you won't be able to really test the size because the file gets closed (and therefore comes to a definite size) only after the end of the test (obviously too late).I did not add this feature myself because I am not sure that I am not missing something here. However, it's a very easy patch and I will be glad to contribute it if it is deemed something useful.