Pijush2023 commited on
Commit
8dedc8b
·
verified ·
1 Parent(s): b6c0505

Delete CHATTS/utils/io_utils.py

Browse files
Files changed (1) hide show
  1. CHATTS/utils/io_utils.py +0 -14
CHATTS/utils/io_utils.py DELETED
@@ -1,14 +0,0 @@
1
-
2
- import os
3
- import logging
4
-
5
- def get_latest_modified_file(directory):
6
- logger = logging.getLogger(__name__)
7
-
8
- files = [os.path.join(directory, f) for f in os.listdir(directory)]
9
- if not files:
10
- logger.log(logging.WARNING, f'No files found in the directory: {directory}')
11
- return None
12
- latest_file = max(files, key=os.path.getmtime)
13
-
14
- return latest_file