You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make detailed find and info agree on duplicate Drive paths #421
A detailed recursive listing can choose a different Drive item than info() for the same logical path. The discrepancy was reproduced on main and on #420.
Reproduction
Create two Drive folders named dup under the same root, each containing a folder named a.
In one a, create a folder named x. In the other, create a file named x. Give the folder the lower ID in a simulated transport.
Call fs.find("root"), then compare fs.find("root/dup/a", withdirs=True, detail=True)["root/dup/a/x"]["type"] with fs.info("root/dup/a/x")["type"].
The detailed listing can return file while info() returns directory. The detailed listing currently keeps the last entry for a path. info() selects the lowest matching Drive ID. Traversal order can change after warming the cache.
Expected behavior
Choose the same item for a shared path across cold and warm detailed listings and info() when both files and folders are requested. Cover the case with a public filesystem test and measure peak memory on a wide traversal. The initial proposal kept an ID for every output path and increased peak RSS from 162 to 179 MiB for 262,144 files in the reviewer's simulated workload. A solution that limits additional state to ambiguous paths is worth investigating.
Activity