INNER CODE UNIT · Python

path

zhinkgit/embeddedskills · .github/maintenance/package_release.py:67

            path = current_directory / name
            resolved = path.resolve()
            if is_output_path(path, root, output_directory):
                continue
            if path.is_symlink() or not resolved.is_relative_to(root):
                raise ValueError(
                    "release input must not escape through a link: "
                    f"{path.relative_to(root)}"
                )
            if included(path, root, output_directory):
                included_directories.append(name)
        directory_names[:] = included_directories

        for name in file_names:
            path = current_directory / name
            resolved = path.resolve()
            if is_output_path(path, root, output_directory):
                continue

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…