Hi!
You can also use File.Size parameter:
File.Size(directory,*,1)
this will get size of all files in given directory and subdirectories. If you want to ignore subdirectories, you can use form
File.Size(directory,*,0)
Full description of File.Size and File.Count arguments:
File.Size and File.Count accepts the following arguments:
path, pattern, recursive, size, age
where
path : path to directory or file to check
pattern : pattern for file name matching
recursive : recursion flag; if set to 1 or true, agent will scan subdirectories
size : size filter; if < 0, only files with size less than abs(value) will match;
if > 0, only files with size greater than value will match
age : age filter; if < 0, only files created after now - abs(value) will match;
if > 0, only files created before now - value will match
All arguments except first can be omitted.
Best regards,
Victor