tensorflow/models · error · FileExistsError
Duplicate files found in '{destination_folder}': {conflict
Error message
Duplicate files found in '{destination_folder}':
{conflict_list} What it means
Error "Duplicate files found in '{destination_folder}': {conflict_list}" thrown in tensorflow/models.
Source
Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/split_train_val.py:226
) -> None:
"""Checks if any files already exist in the destination folder.
Args:
file_names: List of file names to check.
destination_folder: Path to the destination folder.
Raises:
FileExistsError: If any file names conflict with existing files.
"""
conflicting_files = [
name
for name in file_names
if os.path.exists(os.path.join(destination_folder, name))
]
if conflicting_files:
conflict_list = "\n ".join(conflicting_files)
raise FileExistsError(
f"Duplicate files found in '{destination_folder}':\n {conflict_list}"
)
def copy_files(
file_names: list[str],
source_folder: str,
destination_folder: str,
) -> None:
"""Copies files from source to destination folder.
Args:
file_names: List of file names to copy.
source_folder: Path to the source folder.
destination_folder: Path to the destination folder.
"""
for file_name in file_names:
source_path = os.path.join(source_folder, file_name)View on GitHub (pinned to e006f5f0d5)
When it happens
Trigger: Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/split_train_val.py:226 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tensorflow/models@e006f5f0d5 (2026-08-24).
Data as JSON: /api/errors/dbeefd9ac1d5d6e5.
Report an issue: GitHub.