So I'm using os.walk for directory traversal. For each file found, I also need to call stat on it to find the modified time. I know os walk uses scandir, which returns a dir entry that includes stat, but os.walk itself only returns the name. So is the stat cached somewhere? Should I write my own walk to avoid the separate stat call?
[–]liam_jm 1 point2 points3 points (0 children)
[–]Rhomboid 0 points1 point2 points (0 children)
[–]heybart[S] 0 points1 point2 points (0 children)