We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16b5654 commit 0e33698Copy full SHA for 0e33698
Directory Tree Generator/tree.py
@@ -13,6 +13,7 @@ def realname(path, root=None):
13
14
def ptree(startpath, depth=-1):
15
prefix=0
16
+ assert os.path.isdir(startpath),"Directory not valid"
17
if startpath != '/':
18
if startpath.endswith('/'): startpath=startpath[:-1]
19
prefix=len(startpath)
0 commit comments