X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=webber.py;h=29b40698986ff640ccc42d208639ad454e933e29;hb=d21380b1f0beafe83efeabd2c48a76274c0200d9;hp=194ce5cf3e93e4667f7f79245842948a19d2d6e4;hpb=74e20e0f6ac2f40bf5655609cf22c06133f0f105;p=oss-web.git diff --git a/webber.py b/webber.py index 194ce5c..29b4069 100644 --- a/webber.py +++ b/webber.py @@ -519,6 +519,13 @@ def walk_tree(dirpath): if ok: #print "FILE", s rel_path = relpath(cfg.in_dir, full_path) + # Allow paths to be specified in exclude_files: + for e in cfg.exclude_files: + if fnmatch.fnmatch(rel_path, e): + log("ignoring file %s" % rel_path, level=7) + ok = False + break + if ok: log("reading file %s" % rel_path, level=5) file = File( path = full_path,