@dirtyhawk

FILESEARCH: Stata module to recursively list files matching to a pattern or regular expression

. Statistical Software Components, Boston College Department of Economics, (September 2018)

Abstract

filesearch lists file- or directory names from the file system, and returns them to the user. It supports pattern or regular expression matching for filtering the results. Also, it is able to recursively list results from subdirectories, with a configurable depth. When used in Stata 14 or younger, -filesearch- automatically uses Unicode. In older Stata versions, inconveniences may arise as soon as you encounter file names containing Unicode characters. -filesearch- is the successor of the older command -retrievefilenames-, which is now considered deprecated.

Links and resources

Tags