projects
/
dirtag.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b0c84f
)
Raise a more helpful error message is a directory does not exist
author
W. Trevor King
<wking@drexel.edu>
Fri, 16 Jul 2010 05:17:14 +0000
(
01:17
-0400)
committer
W. Trevor King
<wking@drexel.edu>
Fri, 16 Jul 2010 05:17:14 +0000
(
01:17
-0400)
dirtag/__init__.py
patch
|
blob
|
history
diff --git
a/dirtag/__init__.py
b/dirtag/__init__.py
index b8f49c75d6e9ee37bb56ff939dd564b601dd4c27..406c2860225cd6cc8809bad24b04065bbe55aedf 100644
(file)
--- a/
dirtag/__init__.py
+++ b/
dirtag/__init__.py
@@
-71,6
+71,8
@@
def dir_tree(root_dir):
x|a2.dat
x|b3.dat
"""
+ if not os.path.exists(root_dir):
+ raise ValueError(root_dir)
trees = {}
for dirpath,dirnames,filenames in os.walk(root_dir, followlinks=True):
t = trees.get(