Skip to content
Advertisement

Tag: os.walk

os.walk different folder ordering on Mac and Linux?

Given the following file structure, I’m wondering if it’s possible that python’s os.walk function returns the folders in different orders on Mac and Linux? Both are using python 3.5. Mac: On Linux: In the case of Mac, looks as though the folder v1 is encountered first, while on Linux it’s v2. Any insight as to why this might be the

Advertisement