with_mode option

with_mode option can be used for comparing access rights of file or directory