Thomas, On Tue, Jan 24, 2017 at 07:18 PM, Thomas De Schampheleire wrote: [snip] >> +FILENAME_WITH_SLASH = re.compile("/") [snip] >> + if FILENAME_WITH_SLASH.search(filename): > > This is overkill. It is more simple and I expect more performant to just do: > > if '/' in filename: Fixed in v2. Regards, Ricardo