...G...... [ZBXNEXT-497] if path contains a trailing slash, we should verify that it is indeed a directory