jmduke / celerity

A self-contained Hastebin CLI.
2 stars 0 forks source link

Option get doesn't work when putting main.py itself to hastebin #1

Open SoumenDass opened 11 years ago

SoumenDass commented 11 years ago

Due to the way the Delimiter is used to split files, if one puts main.py to hastebin and then tries to retrieve it, only part of the file (until the delimiter obviously) is retrieved.

jmduke commented 11 years ago

Hahahah; so, broadly speaking, any file that has the delimiter itself within it is gonna break the upload.

I'd argue this is symptomatic of the bigger issue, that the method of concatenating multiple files into a single payload is pretty clumsy (and at the very least not Pythonic.)

I'm trying to brainstorm alternate solutions; if anyone has an idea for a better implementation, please let me know!