View Single Post
Old 12-30-2014, 06:27 AM   #821
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Terisa de morgan View Post
I'm afraid it's not a weird Spanish character

The file is:

Code:
Diaz, Lena -[The Nursery Rhyme-2]- Simon Says Die.epub.annot
If the name is:



it doesn't fail and it removes the file.

If the name is:



it doesn't fail but it doesn't remove the file.
No, not a weird Spanish character. But, if you are going to use an invalid regex for the name, you can expect problems.

I reused the code for cleaning the image directory. It uses "glob" to get the list of files. I had forgotten that it uses linux style name matching and hence "[]" had meaning.
davidfor is offline