match file or dir lock