Production

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.

PRO Command line: ringtail-folders Version 1.0
A Pro toolIn the free edition it works on up to 25 documents per run, so you can try it on real work. Compare Free and Pro.

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

How to run it

  1. Choose the folder holding the documents as Input.
  2. Choose an Output folder.
  3. Check the Separator (usually .) and Minimum parts.
  4. Optionally, give a Top-level folder such as VOL001 to hold the whole structure.
  5. Choose the Hashes to record.
  6. 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

SettingWhat it doesType 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.
number
3
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, SHA256
MD5,SHA1

Common settings

SettingWhat it doesType 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/no
true
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. number
4

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).

Report columns

Check the result

Tips
  • 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.0003 the final .0003 is 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.
Watch out for
  • 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).ext and 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