fix directory return bug

这个提交包含在:
Your Name
2023-03-29 14:28:57 +08:00
父节点 7d5aaa5aee
当前提交 17d9a060d8
共有 2 个文件被更改,包括 2 次插入1 次删除

查看文件

@@ -184,6 +184,7 @@ def find_recent_files(directory):
if file_path.endswith('.log'): continue
created_time = os.path.getctime(file_path)
if created_time >= one_minute_ago:
if os.path.isdir(file_path): continue
recent_files.append(file_path)
return recent_files