Closed jpetrucciani closed 5 years ago
Hi, Thanks for the fix. Can you please commit the code without reformatting because it have hid the actual change. :)
Yep, I can change it! I've got black running by default so it formatted automatically.
I've updated this fork to just include the fixes!
Looks good. Changes are now merged.
Currently, there appears to be an issue with the library (or MOSS itself?) where if you add a file that exists but has no contents, the moss.send() call appears to hang for a bit, then returns an empty string. Maybe the socket.send() in the uploadFile method call doesn't like sending 0 bytes?
I've just set it to ignore empty files in my program using this library, but I figured it may be useful to fix upstream!