aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-13 17:39:01 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-13 17:39:01 -0500
commitef84096cd12811e57207f24e96beb86997eb036e (patch)
treeee58f8443567db17e80a3579389af1eeefb2f588
parent9e5cf5dae98f803c3e5850236cf1d48cc540d598 (diff)
downloaddotfiles-ef84096cd12811e57207f24e96beb86997eb036e.tar.gz
dotfiles-ef84096cd12811e57207f24e96beb86997eb036e.tar.bz2
dotfiles-ef84096cd12811e57207f24e96beb86997eb036e.zip
Add stub for recursive dotfile discovery
-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 = []