i want a python program that given a directory, it will return all directories within that directory that have 775 (rwxrwxr-x) permissions
thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Neither answer recurses, though it’s not entirely clear that that’s what the OP wants. Here’s a recursive approach (untested, but you get the idea):
Something similar is described in the stdlib documentation for stat.