Closed niklas88 closed 5 years ago
Hi, We had a pull-request #13 where moss don't respond when file-size is zero. I will confirm this again and update here accordingly.
I installed via pip, maybe version was just too old?
I am seeing same issue as indicated in #13, Moss starts failing or sometime gets hangs on empty file. However, I have updated error message to "File not found or is empty." in commit d62c5ed
.
Silently ignoring such error can cause script to send zero files (worst case). It would be better that such files are handled beforehand.
Closing this issue.
When there is an empty file in the directory being added e.g. an empty
__init__.py
. ` mosspy crashes with the following error:Changing the
getsize()
check inmoss.py:79
to>= 0
lets everything run through fine.