First, what, you have a Linux terminal, and second, I am unsure how to make an array of stat and format it. I also would need how to write to a file and only place I found that was zzzcode.ai. Here is like my progress so far.
Bash:
#!/bin/bash
function recurse() {
#save list of file name to variable
manifest="$(ls -pa $1 | grep -v /)";
echo "$(stat $1)";
#iterate through each file name and pass it to stat to get birth, access, modify info
while IFS= read -r line; do
stat "$1$line"
done <<< $manifest
}
recurse ./
#X E.
I feel like getting close but do not know how, does that second video explain stuff like this because I did not watch that yet. I should also make a thing to check if it is a folder and if not ending in / add /. You could probably do this easily. I am trying for like line by line write out what I need. I would probably be doing recursion and for each file do stat and record it with absolute path first. I am getting more advanced but unsure if someone else who knows what they are doing should be doing this. I think inode, links, accessed by, accessed time, modify time, change time, and birth time should be what to record. Basically everything. If you ever make this thing it might help a lot of Linux users. I guess I may learn from AI for now. X E.