Skip to content

Commit

Permalink
#36 Accomodate filenames that do not contain periods
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristopher Rand authored and Kristopher Rand committed Oct 24, 2024
1 parent 0f18e03 commit f80c7f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion catalogbuilder/intakebuilder/gfdlcrawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def crawlLocal(projectdir, dictFilter,dictFilterIgnore,logger,configyaml,slow):
continue
#if our filename expectations are not met compared to the output_file_path_template in config, skip the loop. TODO revisit for statics
if ("static" not in filename):
if ((len(filename.split('.'))-1) != len(set_ftemplate)):
splitchar = "_" if "/uda" in filename else "."
if ((len(filename.split(splitchar))-1) != len(set_ftemplate)):
logger.debug("Skipping "+filename)
continue
logger.debug(dirpath+"/"+filename)
Expand Down

0 comments on commit f80c7f0

Please sign in to comment.