So basically, a cool file server that is for public trust, so people trust the website. It will show the hashed content of files, and hide other files specific, to their name, path, or suffix (.env)
Pseudo code:
function getFiles(dir){ // a simple test function
let _files = {
"folders":[],
"files":[]
} // a simple list variable
for file in dir.files{
if (file.isFile){
_files.files.append({"name":file.name,"content":hash(file.content)}) //hash the file content
} else if (file.isFolder){
_files.folders.append({"name":file.name})
}
}
return _files // return the list!
}