Hello: I am trying to extract all filenames in a selected directory and place list them all in a variable for processing and matching.
This topic is related to this old post:
https://www.stata.com/statalist/arch.../msg01030.html
However, the directories I want to work with contain many files, 100,000 and counting.
using the command:
does not work because it errors as too many filenames, detailing that I cannot encode a str variable with greater than 65,536 unique values.
There is another package available called -filelist- that also has a limit of 10,000 files.
Are there any solutions as to how to tackle this which such long filelists in the the directory?
Thanks!
This topic is related to this old post:
https://www.stata.com/statalist/arch.../msg01030.html
However, the directories I want to work with contain many files, 100,000 and counting.
using the command:
Code:
local list : dir . files "*"
There is another package available called -filelist- that also has a limit of 10,000 files.
Are there any solutions as to how to tackle this which such long filelists in the the directory?
Thanks!
Comment