View_Logs(M as mob)
var/list/logs("")
logs.Add(file("/Logs/[M.key]/"))
var/log = input("What file do you want to view?") in logs
usr<<browse(file(log))
Problem description:
I'm trying to append all files in the directory '/Logs/[M.key]/' into the variable logs; then the user chooses the log they want to view which is sorted out by dates then, it opens the log in a browser for the user to read.
You can use flist() to get a list of all files directly under a given folder: