PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli

⇐ retour index

Sanitize a filename

jeudi 27 février 2014 à 02:59
JeromeJ, le 27/02/2014 à 02:59
Ok, so there's no fucking way to sanitize filenames out there?

I've been mainly looking for Python solutions but still it feels like there is none.

I mean, I'm talking about solutions that would be offered by the system itself, so that you don't have to code a sanitizer yourself for each existing os possible.

Doh!

EDIT: This is a nice solution if you don't care both about loosing completely (but reversible) the original filename and readability for humans.
http://stackoverflow.com/a/295150/1524913
(Permalink)