Tag Archives: windows

Windows version of os.walk with long path (255 characters) support

There are these times that you really have to use Windows and in those cases some issues like the 255 path limit tend to occur with network mounts. Luckily, this is fairly easy to solve with a small Python snippet: import os UNUSED_DRIVE_LETTER = 'x:' def windows_walk(top, topdown=True, onerror=None, followlinks=False): for path, dirs, files in […]

1 Comment Continue Reading →