

def scan(filename, installed, sentinel=None):
    if (not sentinel):
        sentinel = set()
    if os.path.isfile(filename):
        return scan_file(None, filename, sentinel, installed)
    elif os.path.isdir(filename):
        return scan_directory(None, filename, sentinel, installed)
    else:
        log.error('Could not scan: %s', filename)

dataset/ETHPy150Open tweekmonster/moult/moult/filesystem_scanner.py scan/original