NetXMS Support Forum

English Support => General Support => Topic started by: TICK_TEL on April 08, 2019, 04:50:59 PM

Title: File Count include File Size Paramater
Post by: TICK_TEL on April 08, 2019, 04:50:59 PM
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?
Title: Re: File Count include File Size Paramater
Post by: Victor Kirhenshtein on April 09, 2019, 10:29:45 AM
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
Title: Re: File Count include File Size Paramater
Post by: TICK_TEL on April 10, 2019, 11:08:23 AM
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?
Title: Re: File Count include File Size Paramater
Post by: Victor Kirhenshtein on April 10, 2019, 12:08:01 PM
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