Skip to content
Snippets Groups Projects
Commit bc940157 authored by Sven Mäder's avatar Sven Mäder :speech_balloon:
Browse files

Check if directory

parent a2d413d1
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,12 @@ class Home(object):
def check_homes(top):
if not os.path.isdir(top):
return
for f in os.listdir(top):
pathname = os.path.join(top, f)
if not os.path.isdir(pathname):
continue
st = os.stat(pathname)
home = Home(f, pathname, st)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment