start making tests
This commit is contained in:
@@ -3,7 +3,7 @@ import logging
|
||||
|
||||
from meta_data_handler import MetadataHandler
|
||||
from file_handler import sort_pictures
|
||||
from folder_handler import *
|
||||
from scan_folder import *
|
||||
|
||||
sys.path.append("../")
|
||||
log_folder = "."
|
||||
@@ -29,7 +29,7 @@ def start_process():
|
||||
raise err
|
||||
|
||||
|
||||
files = recursive_scan_dir(src)
|
||||
files = recursive_scan_folder(src)
|
||||
if len(files) > 0:
|
||||
start_process()
|
||||
else:
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import os
|
||||
|
||||
|
||||
def scan_dir(path:str):
|
||||
def scan_folder(path:str):
|
||||
return next(os.walk(path))[2]
|
||||
|
||||
|
||||
def recursive_scan_dir(path:str):
|
||||
def recursive_scan_folder(path:str):
|
||||
results = []
|
||||
for root, folders, files in os.walk(path):
|
||||
list_files = os.listdir(root)
|
||||
Reference in New Issue
Block a user