The script function GET_FILESYSTEM in combination with the File System Value 'PATH_FILE_COUNT'
returns '1' instead of the previous and documented value of '0', when the folder defined does not exist.
With Windows Agent version 12.2.0, it worked correctly - returned '0',
with Windows Agent version 12.2.1, it returns the value '1'.
Example:
:SET &TAR = GET_FILESYSTEM(WIN_AGE,'
C:\Test1\*',PATH_FILE_COUNT,"STD_WINDOWS")
:P ********************************************
:P &TAR
:P *****************************************
Windows Agent Version 12.2.0:
2018-11-29 15:46:57 - U00020792 Runtime error in object 'SCRI.SMP.02', line '00001': The value of parameter '4' is too long. The allowed length is '8'.
2018-11-29 15:46:57 - U00020408 ********************************************
2018-11-29 15:46:57 - U00020408 0000000000000000
2018-11-29 15:46:57 - U00020408 *****************************************
Windows Agent Version 12.2.1:
2018-11-30 10:59:00 - U00020792 Runtime error in object 'SCRI.SMP.02', line '00001': The value of parameter '4' is too long. The allowed length is '8'.
2018-11-30 10:59:00 - U00020408 ********************************************
2018-11-30 10:59:00 - U00020408 0000000000000001
2018-11-30 10:59:00 - U00020408 *****************************************