Duncan Booth wrote: > How about just concatentating the two lists: > >>for root, dirs, files in os.walk(path): > for fs_object in files + dirs: >> ADD fs_object to dictionary Thank you Duncan! that solves the problem perfectly!