soachishti / moss.py

Python client for Moss: A System for Detecting Software Similarity
MIT License
381 stars 75 forks source link

0 size file causing issues #17

Closed martin5696 closed 5 years ago

martin5696 commented 5 years ago

For my use case, there is a 0 sized file as part of the submission which causes an exception from the following recent change: and os.path.getsize(file_path) > 0

I'm wondering what the purpose of this additional condition is and whether it's necessary?

soachishti commented 5 years ago

Hi, We had an issue when sending a file of size 0 to Moss server. Check out this pull request (#13) for detail.

martin5696 commented 5 years ago

Ok, thanks. I'll figure out a workaround.