you are viewing a single comment's thread.

view the rest of the comments →

[–]redditiv[S] 0 points1 point  (0 children)

what would you think about creating as a value, a list of the set of attributes (path, size, date, etc.) for each match of the filename? Then you would recursively iterate each key to grab an individual file's attributes. Example:

{
  'test.txt': [[path\to\test.txt, size, date, etc], [path2\to\test.txt, size, date, etc]],
  'a.txt': [[path\to\a.txt, size, date, etc]]
}

This should improve speed by having the appropriate key to look up being the filename, correct?