Using the old answer to search for a file in tcl: https://stackoverflow.com/a/4646263
First, let's discuss what I'm doing right now: Using this function: (credit to Jackson)
# findFiles
And calling the following command:
findFiles some_dir_name *.c
Current result:
bad option "normalize": must be atime, attributes, channels, copy, delete, dirname, executable, exists, extension, isdirectory, isfile, join, lstat, mtime, mkdir, nativename, owned, pathtype, readable, readlink, rename, rootname, size, split, stat, tail, type, volumes, or writable
Now, if we run:
glob *.c
We get a lot of files, but they are all in the current directory.
The goal is to get ALL files in ALL subfolders on the machine with their paths. Who can help?
I really want to find the directory with the highest number of * .c files. However, if I could list all the files and their paths, I could calculate how many files are in each directory and get the one with the highest score.