Exemple #1
0
def sanitize_file_name(x):
    from calibre.ebooks.oeb.polish.check.parsing import make_filename_safe

    x = sanitize_file_name2(x)
    while ".." in x:
        x = x.replace("..", ".")
    return make_filename_safe(x)
Exemple #2
0
def sanitize_file_name(x):
    from calibre.ebooks.oeb.polish.check.parsing import make_filename_safe
    x = sanitize_file_name_base(x)
    while '..' in x:
        x = x.replace('..', '.')
    return make_filename_safe(x)
Exemple #3
0
def sanitize_file_name(x):
    from calibre.ebooks.oeb.polish.check.parsing import make_filename_safe
    x = sanitize_file_name_base(x)
    while '..' in x:
        x = x.replace('..', '.')
    return make_filename_safe(x)