File name handling
Will my system store, show and give back a file name it did not expect?
The filename-handling preset builds a whole set of real test files for this question in one
command, and a manifest.json beside them saying how your system should react to each
file. Everything below is read from the program, at the defaults of this version.
What does it usually find?
- a name that looks like a different one on screen, in a log or in a list
- a name cut, trimmed or rewritten between upload and storage
- a length limit counted in characters where the storage counts bytes
What is in the set?
At its defaults, as tfg preset show filename-handling reports it:
| Files | 50 |
|---|---|
| Targets in its recipe | 50 |
| Total size | 51 200 B |
| Formats | txt |
And what the manifest of that set expects from your system:
| Expected | Meaning | Files |
|---|---|---|
accept | Your system should take the file. | 4 |
unspecified | It depends on the rules of your system. You decide, then check that what happens is what you meant. | 46 |
What can you change?
| Setting | Takes | Default | What it does |
|---|---|---|---|
--format |
a format id from the formats page | txt |
The format of every file in the set. It is a flag of the tool itself, and the preset only gives it a default. |
How do you run it?
See what the set would cost, build it, or take its recipe to edit:
tfg preset show filename-handling
tfg generate --preset filename-handling --out ./filename-handling
tfg preset eject filename-handling > filename-handling.yaml
Or build on it in a recipe of your own, next to your tests:
version: 1
extends: preset:filename-handling