2508회 채점자료 업데이트
This commit is contained in:
@@ -2,6 +2,7 @@ import os
|
||||
import shutil
|
||||
import unicodedata
|
||||
|
||||
"""
|
||||
def copy_dic_subdirs(source_root, target_root_b, target_root_c):
|
||||
for root, dirs, files in os.walk(source_root):
|
||||
for dir_name in dirs:
|
||||
@@ -26,6 +27,7 @@ def copy_dic_subdirs(source_root, target_root_b, target_root_c):
|
||||
|
||||
else:
|
||||
print(f"Skipping {dir_name} under {parent_dir}, as it doesn't match '2교시' or '3교시'.")
|
||||
"""
|
||||
|
||||
def copy_ent_files(source_root, target_root):
|
||||
# 대상 디렉토리가 없으면 생성
|
||||
@@ -44,10 +46,11 @@ def copy_ent_files(source_root, target_root):
|
||||
print(f"Copied {source_file_path} to {target_file_path}")
|
||||
|
||||
# 사용법
|
||||
source_directory = r"D:\project\data\CAT_제2507회 정기\채점의뢰" # 원본 디렉토리 경로
|
||||
target_directory = r"./ent/2507_CAT_3_A"
|
||||
target_directory_a = r"./output/A" # '1교시'의 타겟 경로
|
||||
target_directory_b = r"./output/B" # '2교시'의 타겟 경로
|
||||
target_directory_c = r"./output/C" # '3교시'의 타겟 경로
|
||||
|
||||
source_directory = r"D:\project\data\CAS_제2508회 정기\답안파일\(전체답안)1교시2교시나눔\B형" # 원본 디렉토리 경로
|
||||
target_directory = r".\ent\2508_CAS_2_B"
|
||||
# target_directory_a = r"./output/A" # '1교시'의 타겟 경로
|
||||
# target_directory_b = r"./output/B" # '2교시'의 타겟 경로
|
||||
# target_directory_c = r"./output/C" # '3교시'의 타겟 경로
|
||||
|
||||
copy_ent_files(source_directory, target_directory)
|
||||
|
||||
Reference in New Issue
Block a user