guarding thread safe the correct resource and allow subDirectory monitoring