Hi! I wanna to scan file system finding size of each file, added "try" for files like /proc/..., but after first except it always gives 0.
import os, re
var fsz: BiggestInt
for file in walkDirRec "/":
if file.match re".*":
try:
fsz = getFileSize file
except:
echo file, " " ,0
finally:
echo file, " " ,fsz
What am I doing wrong?