Open SHAESEN2 opened 1 year ago
Nice catch! Thanks so much for finding this edge case. Mostly it sounds like a relatively simple fix - perhaps keeping the empty file is still desirable. I will probably patch it in the next few months and update the progress here.
It would be helpful to include checks before sending code into a seq(...) function. In my case I had an empty file in a folder and got an error while running the pack function:
I traced it all the way to
Since the binary file had 0 bytes and no content the seq(from = 1L, to = 0, by = 64) gave the error. I propose to built in a safety net to check if files have content (eg remove empty files in a sanitize function, eg if nchars>1 then do ... else give informative error to the user to investigate)