From f429e000105d59600d49770d073bad3a2f468757 Mon Sep 17 00:00:00 2001 From: wataru Date: Fri, 23 Jun 2023 21:44:01 +0900 Subject: [PATCH] delete unused module --- server/restapi/utils/files.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 server/restapi/utils/files.py diff --git a/server/restapi/utils/files.py b/server/restapi/utils/files.py deleted file mode 100755 index fb5a30baf..000000000 --- a/server/restapi/utils/files.py +++ /dev/null @@ -1,26 +0,0 @@ -import os -import glob - - -# def get_file_list(top_dir): -# for root, dirs, files in os.walk(top_dir): -# for dir in dirs: -# dirPath = os.path.join(root, dir) -# print(f'dirPath = {dirPath}') - -# for file in files: -# filePath = os.path.join(root, file) -# print(f'filePath = {filePath}') - - -def get_dir_list(top_dir): - dirlist = [] - files = os.listdir(top_dir) - for filename in files: - if os.path.isdir(os.path.join(top_dir, filename)): - dirlist.append(filename) - return dirlist - - -def get_file_list(top_dir): - return glob.glob(top_dir)