dirscan - regex for directory include pattern to watch
search cancel

dirscan - regex for directory include pattern to watch

book

Article ID: 98030

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) Unified Infrastructure Management for Mainframe

Issue/Introduction

Can I use regex pattern in the directory?

Environment

  • Component: UIMDRS

Resolution

You cannot put it in the directory but you can create a double negative entry in the exclude directories using regex that will generally accomplish the same thing.

Example:

I have directories ICT_EDIT01-09 that I want to monitor under G:\Retail_apps\AUDITWORKS. The setup would look something like this:

Directory – G:\Retail_apps\AUDITWORKS 
Pattern- .error|.bad 
Recurse into subdirectories - Checked 
Exclude directories matching pattern -- /^(?!ICT_EDIT0*).*$/

Additional Information

Since I am using a regex that is exclusionary, in the exclude directories field, it will actually include that pattern to be used.