From 40d046af9ab265cfb9ab420c9dc8c10defea47be Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sun, 1 Jan 2012 11:16:01 -0500 Subject: Fix adding a directory with a trailing slash Closes: #6 --- dotfiles/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dotfiles/core.py b/dotfiles/core.py index aa0dce9..e9f34bc 100644 --- a/dotfiles/core.py +++ b/dotfiles/core.py @@ -137,6 +137,7 @@ class Dotfiles(object): def _perform_action(self, action, files): for file in files: + file = file.rstrip('/') if os.path.basename(file).startswith('.'): getattr(Dotfile(file, self._fqpn(file), self.homedir), action)() else: -- cgit v1.2.3