Skip to content

Commit

Permalink
[doc] Docstring for discovery.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperVanDenBosch committed Feb 21, 2015
1 parent 610cf4b commit 80034fa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions niprov/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@

def discover(root, filefilter=FileFilter(), filesys=Filesystem(),
listener=Commandline(), repository=JsonFile()):
"""
Search a directory for image files, inspect them and store provenance.
Files are only included if they match the filters in the
'discovery-filter.txt' file.
If a file is already known, it will be ignored and the listener informed.
Args:
root (str): The top directory in which to look for new files.
"""
dirs = filesys.walk(root)
for (root, sdirs, files) in dirs:
for filename in files:
Expand Down

0 comments on commit 80034fa

Please sign in to comment.