fix typos
parent
65e1ec1a5d
commit
a1fec5013c
|
@ -107,7 +107,7 @@ def most_recent_within(path):
|
||||||
"""Return the most recent timestamp among all files within path, 3
|
"""Return the most recent timestamp among all files within path, 3
|
||||||
levels deep.
|
levels deep.
|
||||||
"""
|
"""
|
||||||
return max(modified_times(path), maxdepth=3)
|
return max(modified_times(path, maxdepth=3))
|
||||||
|
|
||||||
def modified_times(path, maxdepth=None):
|
def modified_times(path, maxdepth=None):
|
||||||
"""Walk the directories in path, generating timestamps for all
|
"""Walk the directories in path, generating timestamps for all
|
||||||
|
@ -119,7 +119,7 @@ def modified_times(path, maxdepth=None):
|
||||||
for f in files:
|
for f in files:
|
||||||
try:
|
try:
|
||||||
yield os.path.getmtime(os.path.join(root, f))
|
yield os.path.getmtime(os.path.join(root, f))
|
||||||
except FileNotFoundError:
|
except (FileNotFoundError, PermissionError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def tdp_user(username, homedir):
|
def tdp_user(username, homedir):
|
||||||
|
|
Reference in New Issue