From 536378ed4ad1c95013e45a7a9d5f71f4aa5f4009 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 7 Nov 2014 15:41:15 +0100 Subject: [PATCH] bam cli: hard coded bamignore --- client/cli/bam.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/cli/bam.py b/client/cli/bam.py index c0ca699..81c03d8 100755 --- a/client/cli/bam.py +++ b/client/cli/bam.py @@ -215,7 +215,14 @@ class bam_session: if filename_check is None or filename_check(filepath): yield filepath - for fn_abs in iter_files(session_rootdir): + def bamignore_check(fn): + # TODO(cam) + # .bamignore + if fn.endswith(".blend1"): + return False + return True + + for fn_abs in iter_files(session_rootdir, bamignore_check): if fn_abs not in paths_used: # we should be clever - add the file to a useful location based on some rules # (category, filetype & tags?)