Skip to content

Commit

Permalink
Documented Filefilter.include()
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperVanDenBosch committed Jan 3, 2015
1 parent 4bfa6b4 commit 3f16182
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions niprov/filefilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ def __init__(self, filesys=Filesystem()):
self.filters = None

def include(self, filepath):
"""Whether the file is to be included in discovery.
:param filepath: The full path of the file.
:type filepath: str.
:rtype: bool
:returns: True if the file should be included.
:raises: ValueError
"""
if not self.filters:
raise ValueError('Was not able to load filter file.')
for filt in self.filters:
Expand Down

0 comments on commit 3f16182

Please sign in to comment.