Skip to content

Commit

Permalink
[docs] Documented JsonFile.knowsByPath()
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperVanDenBosch committed Jan 18, 2015
1 parent 70dc8d5 commit 27df817
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions niprov/jsonfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ def all(self):
return self.json.deserializeList(jsonstr)

def knowsByPath(self, path):
"""Whether the file at this path has provenance associated with it.
Return:
bool: True if provenance is available for that path.
"""
try:
self.byPath(path)
except IndexError:
Expand Down

0 comments on commit 27df817

Please sign in to comment.