From ef84096cd12811e57207f24e96beb86997eb036e Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Wed, 13 Jan 2016 17:39:01 -0500 Subject: Add stub for recursive dotfile discovery --- dotfiles.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 = [] -- cgit v1.2.3