Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix 'Path not found' error in file.directory #51267
What does this PR do?
What issues does this PR fix or reference?
Commits signed with GPG?
file.check_perms raises CommandExecutionError with message that starts with 'Path not found' when file or directory was deleted between _depth_limited_walk and actual permissions check. This error was correctly ignored for directories, but not for files. This commit fixes error message check for files.