alarmz / boar

Automatically exported from code.google.com/p/boar
0 stars 0 forks source link

Unreadable directories silently ignored #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a small test file tree containing an unreadable sub directory (chmod 
a-rx)
2. Import the tree with boar.

What is the expected output? What do you see instead?

The import goes without problems. Boar should indicate in some way that not the 
entire tree could be imported.

This problem is not easy to fix in python earlier than 3.0, because of the way 
the os.path.walk function behaves. There is no way to handle errors in a custom 
way, and the default handling is to ignore unreadable directories. Implementing 
a pure python walker would be a solution, but is likely to be too slow to be 
worth it.

Original issue reported on code.google.com by ekb...@gmail.com on 7 Aug 2011 at 1:43