Getting file size
Posted: Sat Nov 14, 2009 2:45 pm
I seem to be missing a trick here. The 'files' command puts all files in a folder into a variable which I can then find the file size for, but I just want to get the file size for a file I know the name of.
Do I really need to list all the files in a directory, then find it in the array and then get the file size? Seems a bit bonkers.
I've already got the file name as the result of an 'answer' command, can't I do something like :
Do I really need to list all the files in a directory, then find it in the array and then get the file size? Seems a bit bonkers.
I've already got the file name as the result of an 'answer' command, can't I do something like :
Code: Select all
put the filesize of tFile into tSize