File Count include File Size Paramater

Started by TICK_TEL, April 08, 2019, 04:50:59 PM

Previous topic - Next topic

TICK_TEL

Hello,

I currently use FileCount within NetXMS to check a backup file has been placed within the dir. The only thing is it can take a while to transfer across so I want to check the file size is greater than 60gb for example.

Is this possible, if so how?

Victor Kirhenshtein

Hi,

there is parameter File.Size with same arguments as File.Count - you can use it to retrieve file size and check.

Best regards,
Victor

TICK_TEL

Thanks Victor. I've added this to my polling; File.Size(S:\ftp\folder1\,*,1)

Which yes does work, however there are other folders within S:\ftp\folder1\ so it's the file sizes from these folders up as well. I can't point it at a file name because that changes name every day due to the date and time parameters.

How can I only make it look in the directory S:\ftp\folder1\  for files within that and not the sub folders?

Victor Kirhenshtein

Hi,

third argument in File.Size and File.Count is recursion flag. You have it set to 1, change it to 0 to only process files in given directory.

Best regards,
Victor