def check_filename(name):
    if name in ('.', '..', '') or '/' in name or len(name) > 255:
        raise ValueError("Bad filename %r" % name)
dataset/ETHPy150Open mgax/SpaghettiFS/spaghettifs/storage.py/check_filename/original