BAM-PFA / Drive2Piction

0 stars 0 forks source link

file check failing at the same point each run #1

Open mcampos-quinn opened 6 years ago

mcampos-quinn commented 6 years ago

fails at

/Users/michael/Google Drive/PROGRAM GUIDES/2018 JAN-FEB/Images Film JF18/Nov 16 downloaded mkm/Matinees/Icon

will have to try to figure out what comes after this that is messing it up

or if there is something in the logic that is too specific and failing on something stupid

mcampos-quinn commented 6 years ago

need to rewrite the logic that fails when files with bad characters are taken in (even if they should be handled ok by the character replacement logic)

basic problem is that the first step of file being rejected should be to only allow basic ASCII characters rather than look in a long list of potentially bad non-ascii characters and try to go from there. i think,

mcampos-quinn commented 6 years ago

1) check out the string.ascii_letters standard library function 2) steal the filename sanitization logic from archivematica