A robot vision dataset can list two different paths without containing two independent source files. A manifest that counts names alone may overstate the independence of its inputs. Before using a second pathname as evidence of another capture or backup, distinguish its spelling, the file it currently identifies, and the bytes available through it.
This article proposes a review method for that distinction. A small local Python fixture used synthetic text files to check file-identity comparisons. It did not inspect a robot dataset, operate a camera, or establish that any production training split contains duplicates. The names below describe invented records.
Ask which kind of duplication matters
An acquisition manifest might contain a capture path and a staging path. A reviewer can ask three different questions: are the path strings equal, do the paths identify the same existing file, and do the available contents match? These questions serve different checks. The answer to one should not silently populate a column intended for another.
Python's os.path.samefile checks whether two paths identify the same file or directory using filesystem identity information. The pathlib interface provides Path.samefile with corresponding semantics. Both references describe access failures as exceptions. This is a filesystem observation, rather than an assertion about the meaning of an image or the acquisition that produced it.
For a dataset audit, name the intended rule before selecting a comparison. A pathname inventory needs names. An alias investigation needs file identity. A content comparison needs the actual content under a declared method. None of these alone supplies a capture-session identity, a scene label, or evidence that an annotation is correct.
Follow a hard link and a copy separately
The local fixture created a synthetic source file, a hard link to it, and a separate file copied from its bytes. The two link names were different strings, while Path.samefile returned true for that pair. Comparing the source with the copy returned false. The source and copy nevertheless had equal bytes and equal SHA-256 digests at the time of the check.
The pathlib documentation describes hardlink_to as creating a link to the same file. That explains why two names in the fixture did not establish separate underlying sources. The copy illustrates the converse: matching content at one observation did not require matching file identity. The fixture results apply to the tested local filesystem and Python runtime; other storage arrangements need their own evidence.
Consider a hypothetical camera export where a staging job uses hard links to avoid duplicating storage. Two manifest entries can intentionally provide convenient access to one file. Calling that arrangement two independent backups would add a claim that the path list does not support. Whether the arrangement is suitable depends on its stated purpose and the storage system involved.
Retain the acquisition identity above the file layer
An actual capture can be exported into several encodings or copied into several directories. Conversely, a pipeline can reuse a pathname for later output. The proposed manifest therefore keeps its application-assigned acquisition identity separate from path and content evidence. That identity needs a documented producer contract; the audit should not invent it from a filename pattern.
For each imported record, retain the source manifest, acquisition identifier when available, path as supplied, comparison base for relative paths, and the time of the observation. Add the identity-comparison outcome and content-check result in separately named fields. Record whether the acquisition identity was supplied by the producer or inferred by a review process.
If two records share a file, investigate how that relationship arose before changing a training or evaluation split. A deliberate shared reference artifact, an accidental repeated import, and a second annotation of the same image answer different dataset questions. The filesystem comparison identifies a relationship to explain; it does not decide which record the project should discard.
Keep failed checks distinct from different files
The fixture also compared its source against a missing path and observed FileNotFoundError. A reporting tool that converts every exception to false would hide the distinction between a successful different-file comparison and an unsuccessful attempt. That would make an unavailable source look like confirmed independence.
Use explicit outcomes such as same file, different file, and comparison unavailable. Preserve the reason for an unavailable result and the paths within the authorized audit scope. An inaccessible mount or an unresolved relative reference can then receive a focused investigation instead of becoming a quiet negative value in a summary table.
Apply the same discipline to content checks. A digest that could not be computed is not a digest mismatch. A matching digest is evidence under that content-comparison method, not evidence of separate acquisitions or separate failure domains. Preserve the underlying observation and avoid extending its conclusion beyond the question it answered.
Bound the observation in time
Path-based checks observe a changing environment. A pathname can refer to another object later, and content can change after an earlier comparison. The proposed report therefore ties identity and content observations to a particular collection pass. It does not treat an old true result as a permanent property of a pathname.
When the project requires a stable review artifact, use its approved snapshot or immutable-export process and preserve that process's identity with the manifest. A samefile check alone does not create such a snapshot or make a later processing step atomic. The reader needs to know which guarantee came from storage and which came from a comparison.
The review can finish with three small totals: names examined, distinct file identities successfully observed, and records whose identity comparison was unavailable. Keep acquisition counts and content-equivalence groups separate. This structure helps a robotics team explain why several accessible filenames may still represent one source, without assuming that every equal image is the same capture or that every different path is independent.
Sources checked November 18, 2026:
Python Software Foundation, os.path.samefile:
https://docs.python.org/3/library/os.path.html#os.path.samefile
Python Software Foundation, Path.samefile and Path.hardlink_to:
https://docs.python.org/3/library/pathlib.html#pathlib.Path.samefile
https://docs.python.org/3/library/pathlib.html#pathlib.Path.hardlink_to
The manifest design and synthetic comparison are original editorial work. No production dataset, backup system, or robot was tested.
Illustration: an AI-generated conceptual manifest separates two names pointing to one source file from a separate copy with matching example content. It is not a captured filesystem report or a backup-independence certificate.