From cd6a11d432ba8d222e41e79e789460b585259092 Mon Sep 17 00:00:00 2001 From: George McCabe <23407799+georgemccabe@users.noreply.github.com> Date: Tue, 14 Nov 2023 12:31:36 -0700 Subject: [PATCH] per #2423, follow symbolic links when traversing directories to find files within a time window, ci-run-all-diff --- metplus/wrappers/command_builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metplus/wrappers/command_builder.py b/metplus/wrappers/command_builder.py index 13ee4b5a38..6d018b7916 100755 --- a/metplus/wrappers/command_builder.py +++ b/metplus/wrappers/command_builder.py @@ -757,7 +757,7 @@ def _get_closest_files(self, data_dir, template, valid_time, "%Y%m%d%H%M%S").strftime("%s")) # step through all files under input directory in sorted order - for dirpath, _, all_files in os.walk(data_dir): + for dirpath, _, all_files in os.walk(data_dir, followlinks=True): for filename in sorted(all_files): fullpath = os.path.join(dirpath, filename)