We’re working on an updated filename encryption. To make it as efficient as possible we need to know how long your filenames are.
This script counts the total number of files in your home directory as well as the number of files with names that are longer than 80 and longer than 146 chars:
find ~ 2>/dev/null | sed 's:.*/::' | awk '{if(length > 146) {l146++} if (length > 80) {l80++} total++;} END { print " total: ", total, "\n longer than 80: ", l80, "\n longer than 146: ", l146}'
Try to understand what this script is doing! Do not just execute anything you find on the internet!
The output will look like this:
total: 583391
longer than 80: 6885
longer than 146: 4
If you’re on macOS, Linux or have Cygwin installed, it would be of great help, if you could run the script and post the results in an answer to this topic.
If you are on a windows machine and have powershell access and know how to deal with csv/excel, you can also use a script to create a list off your filenames and their length.
Try to understand what this script is doing! Do not just execute anything you find on the internet!
(I love this )
Please replace D:\PATH with the folder you want to check (or your vault drive letter) and D:\listD.txt with the path and the name you want to have the results stored.
This is just a dirty script. It will show also folders containing no files at all and will then display the count of the folder. So you have to manipulate the output and exclude everything you don’t want to have here.
But its just a small step from there to come to the requested results.
Here we go, my results:
Files actually IN vaults
total: 33419
longer than 80: 74
longer than 146: 0
ALL files on system (excluding encrypted vault files)
total: 314036
longer than 80: 82953
longer than 146: 9