Copy Into Discovery Folder Structure
Copies documents named in Ringtail or discovery format (such as ABC.001.001.0001.pdf) into the folder structure their names describe, verifying every copy by hash.
In discovery numbering each part of a document's name stands for a level: party, box, folder, then document. This tool splits each file name at the separator and uses every part except the last as a folder level, so ABC.001.001.0001.pdf is copied to ABC\001\001\ABC.001.001.0001.pdf. The file name itself is not changed.
Every copy is re-read and checked against the original's hashes, and keeps the original's dates. Files whose names do not fit the pattern are listed in the report and not copied. The source folder is not changed.
Use it when
- A list of documents or a court protocol uses discovery numbers and the documents need to be filed in matching folders for service or exchange.
- Documents have arrived in one flat folder and must be rebuilt into party, box and folder levels.
- You need a hash-verified copy of a set of discovery-numbered documents.
How to run it
- Choose the folder holding the documents as Input.
- Choose an Output folder.
- Check the Separator (usually
.) and Minimum parts. - Optionally, give a Top-level folder such as VOL001 to hold the whole structure.
- Choose the Hashes to record.
- Click Run, read the notes, then Open report and look for skipped or renamed files.
Settings
Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help ringtail-folders lists them.
Settings
| Setting | What it does | Type and default |
|---|---|---|
Separator--separator |
Character(s) between the parts of a document name. With ".", ABC.001.001.0001.pdf is split into ABC, 001, 001 and 0001. The character or characters between parts of the name. It cannot be \ or /. With ., ABC.001.001.0001.pdf splits into ABC, 001, 001 and 0001. |
text. |
Minimum parts--min-segments |
Fewest parts a name must have to be treated as a discovery name (3 = at least two folder levels plus the final number). Names with fewer parts are skipped. The fewest parts a name must have, counting the final number. The default of 3 requires at least two folder levels. A name with fewer parts is skipped, so a set of ordinary file names is not turned into folders by mistake. It must be at least 2. |
number3 |
Top-level folder--prefix-folder |
Optional folder to put the whole structure in, e.g. VOL001. Empty means directly in the files folder. Puts the whole structure inside this folder in the run's files folder, for example files\VOL001\ABC\001\001\. It can include sub-folders. Empty puts the structure directly in files. |
text empty |
Hashes--hashes |
Hashes to record. Every copy is verified by re-reading it and comparing hashes (SHA-256 is used if none are chosen). The hashes recorded in the report. Every copy is verified whatever you choose; with none chosen, SHA-256 is used for the check. |
choices: MD5, SHA1, SHA256MD5,SHA1 |
Common settings
| Setting | What it does | Type and default |
|---|---|---|
Input required--input |
Folder (or single file) to read. It is opened read-only and never modified. | folder empty |
Output required--output |
Folder for reports. Must not be inside the input folder. Each run gets its own sub-folder. | folder empty |
Recurse--recurse |
Include sub-folders. | yes/notrue |
Extensions--extensions |
Only process these extensions (e.g. .pdf, .docx). Empty means the tool's default set. | list empty |
Parallelism--parallelism |
Files processed at once. Use 1-2 for spinning disks or network shares. | number4 |
What you get
Each run creates its own folder inside the output folder, with the report ringtail-folders.csv, errors.csv and manifest.json (see Run folders and manifests).
files\ABC\001\001\ABC.001.001.0001.pdf …: The copied documents in their discovery folder structure.ringtail-folders.csv: One row per file: Status (Copied, or Skipped: not in discovery format), NewPath, Renamed, the chosen hashes, Verification, the original's created and modified dates, and the source and destination paths.
Report columns
RelativePathFileNameSizeBytesStatusNewPathRenamedMD5SHA1SHA256VerificationCreatedUtcModifiedUtcSourcePathDestinationPath
Check the result
- Read the notes for the number of files skipped and renamed.
- Filter the report on Status to see every skipped file and decide whether it needs renaming or a different Separator.
- Check that Verification says Verified for every copied file.
- To fit, a name (without its extension) must have at least Minimum parts parts, the last part must be all digits, and every other part must be usable as a folder name.
- A name with no extension keeps its last number: in
ABC.001.002.0003the final.0003is treated as the document number, not an extension. - Sub-folders of the input are searched, but the structure is built from the file name only; the source folders are ignored.
- If two source files have the same name (for example from two sub-folders), both are copied: the later one is saved as
name_(1).extand marked in Renamed. Check these before relying on the set; they may be duplicates or a numbering error. - Skipped files are not copied anywhere. If they belong in the set, rename them to the discovery format and run again.
From the command line
The command line is part of LitTechKit Pro. See Command line.
ltk run ringtail-folders --input "D:\Matter\Discovery\Flat" --output "D:\Matter\Discovery\Structured" --separator . --min-segments 4 --prefix-folder VOL001 --hashes md5,sha256
Related tools
- Assign Document IDs: Renames files to document IDs in folder order: prefix + number (ABC0000001) or prefix/box/folder/page (ABC.5000.0001.0001), one number per document or per page. Report maps each ID to the original path and MD5. Copies by default, renames in place on request, or just previews.
- Rename Files: Renames files with find/replace (text or regex), prefix and suffix rules, or an old name → new name list. Copies to the output folder by default, or renames in place with a full change log.
- Copy Files: Copies all files, or those matching a list of names or hashes, into a new folder with hash verification, preserved timestamps and a not-found report.