Skip to content
Snippets Groups Projects
Commit aee8bb10 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Add a 'videofile' method to retrieve the concerned video file

parent 43180bb3
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,19 @@ class File(Base): ...@@ -91,6 +91,19 @@ class File(Base):
return os.path.join(directory, self.path + extension) return os.path.join(directory, self.path + extension)
def videofile(self, directory=None):
"""Returns the path to the database video file for this object
Keyword parameters:
directory
An optional directory name that will be prefixed to the returned result.
Returns a string containing the video file path.
"""
return self.make_path(directory, '.mov')
def facefile(self, directory=None): def facefile(self, directory=None):
"""Returns the path to the companion face bounding-box file """Returns the path to the companion face bounding-box file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment