KB Article #64582

Disable recursive directory when using wildcard SEND

Problem

When sending a group of files using a mask in FNAME CFT sends all of the files in the specified directory along with all files in the subdirectories.  Is there a flag or option to disable this?  We only want to send the files in the current directory that match the mask.



Example:
FNAME    = ''#D:\path\to\files\*.csv''



This will send files in D:\path\to\files\*.csv, D:\path\to\files\subdir1\*.csv, D:\path\to\files\subdir2\*.csv, etc.


Resolution

To disable the recursive send when using wildcard, the UCONF file need to be updated as below:



CFTUTIL UCONFSET ID=cft.dirdepth,value=no



The default value is YES for compatibility purpose (older CFT version were only up to send recursively) and the choice is global for the whole CFT