Closed chubz closed 8 years ago
@jeanphix any news on this?
Is this repo still being maintained ?
@chubz @madhukar93 Sorry...
Think it's still wrong, as it replaces anywhere within the filename, better to be something like:
import re
self.filename = re.sub('^%s_' % unicode(size), '', filepath)
@chubz Could you fix?
@jeanphix Sorry I'm late in checking my github notifications. Hope it's good now and you can merge it! Thanks on the suggestion yeah seems like a better solution.
@chubz Thanks :+1:
I've had a case where lstrip matched more than just the size prefix and removed some number I had in the original filename. Doing str.replace here might be better since it would just match and replace the prefix once with an empty string.