Skip to content

Commit

Permalink
pickup changes in project folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mle2718 authored Oct 9, 2024
1 parent 41c8108 commit 1601681
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stata_code/ado/folder_vintage_lookup_and_reset.ado
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ This program will pick through the subfolders in data_main and lookup the most r
*/
cap program drop folder_vintage_lookup_and_reset
program folder_vintage_lookup_and_reset
syntax [, search_folder(string)]

if "`search_folder'" == "" {
local search_folder="$data_main"
}

/* Look through the data_main folder to see what data vintages are available */

local data_vintage : dir "${data_main}" dirs "*"
local data_vintage : dir "`search_folder'" dirs "*"

/* look through all the files and pick out the unique vintages, which are in the last 10 characters */
/* Use a regular expression, to only keep things that end in YYYY_MM_DD*/
Expand Down

0 comments on commit 1601681

Please sign in to comment.