def sanitize_filename(filename):
<EOL>token = generate_drop_id()<EOL>name, extension = splitext(filename)<EOL>if extension:<EOL><INDENT>return '<STR_LIT>' % (token, extension)<EOL><DEDENT>else:<EOL><INDENT>return token<EOL><DEDENT>
preserve the file ending, but replace the name with a random token