ticket:9 check permossion for dir