INNER CODE UNIT · Python

classify

uxlfoundation/oneDAL · dev/release_tests/compare_release_trees.py:311

def classify(root):
    dirs = set()
    files = set()
    links = {}

    for current, dirnames, filenames in os.walk(root, followlinks=False):
        current_path = Path(current)
        for dirname in dirnames:
            path = current_path / dirname
            rel_path = rel(path, root)
            if path.is_symlink():
                links[rel_path] = os.readlink(path)
            else:
                dirs.add(rel_path)
        for filename in filenames:
            path = current_path / filename
            rel_path = rel(path, root)
            if path.is_symlink():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…