(Note: I do not actually need help with this problem anymore. Thanks, Robert! However, Robert asked that I post to Statalist so that he could share his answer more broadly.)
I have a do file that operates on an entire directory of files. Currently, it contains a command like the following:
When a new file is added to the directory, the do file is not triggered, since -project- does not understand that the do file uses this newly-created file.
Is there an elegant way to make this work? I’d rather not have to manually specify every single file I add to the directory.
As an extension of this problem, what if my code had -project, original(…)- in place of -project, uses(…)-? In other words, what if these files were added exogenously, instead of created endogenously by upstream do files?
I have a do file that operates on an entire directory of files. Currently, it contains a command like the following:
Code:
local files : dir “`latex_files'" files "*.tex" foreach file in `files' { project, uses("`latex_files’/`file'") }
Is there an elegant way to make this work? I’d rather not have to manually specify every single file I add to the directory.
As an extension of this problem, what if my code had -project, original(…)- in place of -project, uses(…)-? In other words, what if these files were added exogenously, instead of created endogenously by upstream do files?
Comment