aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dotfiles.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/dotfiles.py b/dotfiles.py
index a3482e1..098edd1 100644
--- a/dotfiles.py
+++ b/dotfiles.py
@@ -122,6 +122,14 @@ class Repository(object):
return Dotfile(name, target)
+ def dotfiles(self, path):
+ """Return a list of dotfiles given a path."""
+
+ if path.check(dir=1):
+ raise IsDirectory(path)
+
+ return self.dotfile(path)
+
def contents(self):
"""Return a list of all dotfiles in the repository path."""
contents = []