KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In Unix all disks are exposed as paths in the main filesystem, so os.walk('/') would traverse, for example, /media/cdrom as well as the primary hard disk, and that is undesirable for some applications. How do I get an os.walk that stays on a single device? Related: Is there a way to determine if a subdirectory is in the same filesystem from python when using os.walk?
Tags (comma-separated)
Save Edits
Cancel