def is_legal_filename(name):
    """
    Function that returns true if the given name can be used as a
    filename
    """
    if name is '':
        return False
    if ' ' in name:
        return False
    if '/' in name:
        return False
    if '\\' in name:
        return False
    return True
