- What does it do
- How it works - Listing
- How it works - Copying
- How it works - Removing
- How it works - Switches
$#>flista [-P|-s|-v <ver>] hs|ls|[force]cp|[force]remove <path> [<flist>]
What does it do
flista the file fista is your fast and efficient file lister/fista.
With flista you can easily track contents of paths with hashes, marking changes that way.
You can copy files into your paths, keeping all files with mismatching hashes.
You can forcecopy files into your paths, irregardless of mismatching hashes.
You can remove files from your paths, keeping all files with mismatching hashes.
How it works: Listing
Install flista like a normal application, currently as an apk for alpinelinux:
$#>apk add flista
After that you can list contents of your current path with:
$#>flista ls .
Or, more generally speaking, build a regular filelist to stdout:
$#>flista ls <path> [ > <file>]
You can list hashed contents of your current path with:
$#>flista ls .
Or, more generally speaking, to build a hashed filelist to stdout:
$#>flista hs <path> [ > <file>]
How it works: Copying
Copying files is easy. Give
Copy files on list to path if hash is same, if any:
$#>flista cp <tgtpath> <flist>
If you have a hashed list and already have files in
$#>flista forcecp <tgtpath> <flist>
How it works: Removing
Remove files on list from path if hash is same, if any:
$#>flista remove <srcpath> <flist>
Remove even when hash mismatch, if any:
$#>flista forceremove <srcpath> <flist>
You may give . as well as / as path!
If you want to save your list, we suggest
$#>flista hs . >/etc/filelist.d/project-files.txt
How it works: Switches
While listing/hashing you can give the following:
Use the faster POSIX mode witch -P for your list, not fancyfying them with tycho saves time, if you only need machine readable anyway …
Enable POSIX Mode, faster when listing/hashing:
$#>flista -P <cmd> <path>
Append statistics with the -s switch.
$#>flista -s <cmd> <path>
Append a folder list, thus making it remind of old EISLIST format with the version switch: -v 1
$#>flista -v 1 <cmd> <path>
The order of the switches when calling is of no consequence.