Upload 10 files
Browse files- code/Structured3D_filelist.json +0 -0
- code/corrupted_images.json +28 -0
- code/download_1.sh +15 -0
- code/download_2.sh +15 -0
- code/download_3.sh +15 -0
- code/download_4.sh +15 -0
- code/download_missing_data.sh +9 -0
- code/filelist.txt +18 -0
- code/remove_corrupted_files.py +92 -0
- code/resume_missing_data.py +55 -0
code/Structured3D_filelist.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
code/corrupted_images.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"Structured3D/scene_00010/2D_rendering/843662/panorama/empty/rgb_rawlight.png",
|
| 3 |
+
"Structured3D/scene_00013/2D_rendering/99/panorama/empty/rgb_coldlight.png",
|
| 4 |
+
"Structured3D/scene_00013/2D_rendering/99/panorama/simple/rgb_warmlight.png",
|
| 5 |
+
"Structured3D/scene_00014/2D_rendering/1083/panorama/simple/rgb_coldlight.png",
|
| 6 |
+
"Structured3D/scene_00014/2D_rendering/864/panorama/simple/albedo.png",
|
| 7 |
+
"Structured3D/scene_00212/2D_rendering/494/panorama/full/rgb_coldlight.png",
|
| 8 |
+
"Structured3D/scene_00403/2D_rendering/11105/panorama/full/rgb_warmlight.png",
|
| 9 |
+
"Structured3D/scene_00408/2D_rendering/176/panorama/full/rgb_warmlight.png",
|
| 10 |
+
"Structured3D/scene_00409/2D_rendering/159/panorama/full/albedo.png",
|
| 11 |
+
"Structured3D/scene_00411/2D_rendering/918447/panorama/full/rgb_rawlight.png",
|
| 12 |
+
"Structured3D/scene_00609/2D_rendering/159/panorama/full/rgb_rawlight.png",
|
| 13 |
+
"Structured3D/scene_00806/2D_rendering/1100/panorama/full/rgb_warmlight.png",
|
| 14 |
+
"Structured3D/scene_01209/2D_rendering/3333/panorama/full/rgb_coldlight.png",
|
| 15 |
+
"Structured3D/scene_01209/2D_rendering/4566/panorama/full/rgb_coldlight.png",
|
| 16 |
+
"Structured3D/scene_01410/2D_rendering/175985/panorama/full/albedo.png",
|
| 17 |
+
"Structured3D/scene_01859/2D_rendering/3727/panorama/full/normal.png",
|
| 18 |
+
"Structured3D/scene_02211/2D_rendering/8993/panorama/empty/rgb_warmlight.png",
|
| 19 |
+
"Structured3D/scene_02212/2D_rendering/171627/panorama/simple/normal.png",
|
| 20 |
+
"Structured3D/scene_02409/2D_rendering/296115/panorama/empty/rgb_rawlight.png",
|
| 21 |
+
"Structured3D/scene_02411/2D_rendering/26694764/panorama/simple/rgb_coldlight.png",
|
| 22 |
+
"Structured3D/scene_02411/2D_rendering/26703128/panorama/full/rgb_warmlight.png",
|
| 23 |
+
"Structured3D/scene_02411/2D_rendering/676259/panorama/empty/rgb_warmlight.png",
|
| 24 |
+
"Structured3D/scene_02411/2D_rendering/676259/panorama/simple/rgb_warmlight.png",
|
| 25 |
+
"Structured3D/scene_02601/2D_rendering/843/panorama/simple/normal.png",
|
| 26 |
+
"Structured3D/scene_02609/2D_rendering/1235/panorama/simple/rgb_warmlight.png",
|
| 27 |
+
"Structured3D/scene_02609/2D_rendering/4681/panorama/empty/rgb_coldlight.png"
|
| 28 |
+
]
|
code/download_1.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
start=0
|
| 3 |
+
end=4
|
| 4 |
+
|
| 5 |
+
for i in $(seq -w $start $end); do
|
| 6 |
+
i=$(printf "%02d" "$i")
|
| 7 |
+
echo "$i"
|
| 8 |
+
wget -q --no-check-certificate https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_${i}.zip
|
| 9 |
+
done
|
| 10 |
+
|
| 11 |
+
for i in $(seq -w $start $end); do
|
| 12 |
+
i=$(printf "%02d" "$i")
|
| 13 |
+
echo "$i"
|
| 14 |
+
unzip Structured3D_panorama_${i}.zip -x '*/empty/*' '*/simple/*'
|
| 15 |
+
done
|
code/download_2.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
start=5
|
| 3 |
+
end=9
|
| 4 |
+
|
| 5 |
+
for i in $(seq -w $start $end); do
|
| 6 |
+
i=$(printf "%02d" "$i")
|
| 7 |
+
echo "$i"
|
| 8 |
+
wget -q --no-check-certificate https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_${i}.zip
|
| 9 |
+
done
|
| 10 |
+
|
| 11 |
+
for i in $(seq -w $start $end); do
|
| 12 |
+
i=$(printf "%02d" "$i")
|
| 13 |
+
echo "$i"
|
| 14 |
+
unzip Structured3D_panorama_${i}.zip -x '*/empty/*' '*/simple/*'
|
| 15 |
+
done
|
code/download_3.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
start=10
|
| 3 |
+
end=13
|
| 4 |
+
|
| 5 |
+
for i in $(seq -w $start $end); do
|
| 6 |
+
i=$(printf "%02d" "$i")
|
| 7 |
+
echo "$i"
|
| 8 |
+
wget -q --no-check-certificate https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_${i}.zip
|
| 9 |
+
done
|
| 10 |
+
|
| 11 |
+
for i in $(seq -w $start $end); do
|
| 12 |
+
i=$(printf "%02d" "$i")
|
| 13 |
+
echo "$i"
|
| 14 |
+
unzip Structured3D_panorama_${i}.zip -x '*/empty/*' '*/simple/*'
|
| 15 |
+
done
|
code/download_4.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
start=14
|
| 3 |
+
end=17
|
| 4 |
+
|
| 5 |
+
for i in $(seq -w $start $end); do
|
| 6 |
+
i=$(printf "%02d" "$i")
|
| 7 |
+
echo "$i"
|
| 8 |
+
wget -q --no-check-certificate https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_${i}.zip
|
| 9 |
+
done
|
| 10 |
+
|
| 11 |
+
for i in $(seq -w $start $end); do
|
| 12 |
+
i=$(printf "%02d" "$i")
|
| 13 |
+
echo "$i"
|
| 14 |
+
unzip Structured3D_panorama_${i}.zip -x '*/empty/*' '*/simple/*'
|
| 15 |
+
done
|
code/download_missing_data.sh
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Google Drive
|
| 2 |
+
## a large file (~500MB)
|
| 3 |
+
# gdown "https://drive.google.com/uc?id=1l_5RK28JRL19wpT22B-DY9We3TVXnnQQ"
|
| 4 |
+
## same as the above but with the file ID
|
| 5 |
+
# gdown "1l_5RK28JRL19wpT22B-DY9We3TVXnnQQ"
|
| 6 |
+
## download with fuzzy extraction of a file ID
|
| 7 |
+
gdown --fuzzy 'https://drive.google.com/file/d/1JqO3W771KZ9ddHqHkiTDv55phhPCo4it/view'
|
| 8 |
+
|
| 9 |
+
unzip share_data.zip
|
code/filelist.txt
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_00.zip
|
| 2 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_01.zip
|
| 3 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_02.zip
|
| 4 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_03.zip
|
| 5 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_04.zip
|
| 6 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_05.zip
|
| 7 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_06.zip
|
| 8 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_07.zip
|
| 9 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_08.zip
|
| 10 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_09.zip
|
| 11 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_10.zip
|
| 12 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_11.zip
|
| 13 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_12.zip
|
| 14 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_13.zip
|
| 15 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_14.zip
|
| 16 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_15.zip
|
| 17 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_16.zip
|
| 18 |
+
wget https://zju-kjl-jointlab-azure.kujiale.com/zju-kjl-jointlab/Structured3D/Structured3D_panorama_17.zip
|
code/remove_corrupted_files.py
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import os.path as osp
|
| 3 |
+
from PIL import Image
|
| 4 |
+
import json
|
| 5 |
+
from shutil import copyfile
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def check_txt_files(directory):
|
| 9 |
+
corrupted_files = []
|
| 10 |
+
for dirpath, dirnames, filenames in os.walk(directory):
|
| 11 |
+
for filename in filenames:
|
| 12 |
+
if filename.lower().endswith('.txt'):
|
| 13 |
+
file_path = os.path.join(dirpath, filename)
|
| 14 |
+
try:
|
| 15 |
+
with open(file_path, 'r', encoding='utf-8') as f:
|
| 16 |
+
content = f.read()
|
| 17 |
+
# 可以添加内容验证逻辑,比如检查是否有乱码
|
| 18 |
+
except UnicodeDecodeError:
|
| 19 |
+
print(f"编码错误或损坏:{file_path}")
|
| 20 |
+
corrupted_files.append(file_path)
|
| 21 |
+
except Exception as e:
|
| 22 |
+
print(f"读取异常:{file_path},错误:{e}")
|
| 23 |
+
corrupted_files.append(file_path)
|
| 24 |
+
return corrupted_files
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def check_images_files(root_directory):
|
| 28 |
+
corrupted_files = []
|
| 29 |
+
for dirpath, dirnames, filenames in os.walk(root_directory):
|
| 30 |
+
if 'cubemap' in dirpath:
|
| 31 |
+
continue
|
| 32 |
+
for filename in filenames:
|
| 33 |
+
file_path = os.path.join(dirpath, filename)
|
| 34 |
+
if file_path.endswith('.png'):
|
| 35 |
+
try:
|
| 36 |
+
with Image.open(file_path) as img:
|
| 37 |
+
img.verify() # 验证图片完整性
|
| 38 |
+
except (IOError, SyntaxError) as e:
|
| 39 |
+
print(f"损坏的图片:{file_path}")
|
| 40 |
+
corrupted_files.append(file_path)
|
| 41 |
+
return corrupted_files
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
if __name__ == '__main__':
|
| 45 |
+
CHECK_IMAGE_FILES = False
|
| 46 |
+
CHECK_TEXT_FILES = False
|
| 47 |
+
CHECK_IMAGE_FILES_SCENE_BY_SCENE = False
|
| 48 |
+
|
| 49 |
+
REMOVE_CORRUPTED_FILES = True
|
| 50 |
+
|
| 51 |
+
# 替换为你的根目录路径
|
| 52 |
+
root = '/mnt/xuyuanxiong/projects/DreamCube-Flux-Private/data/Structured3D/code'
|
| 53 |
+
data_dir = osp.join(root, 'Structured3D')
|
| 54 |
+
temp_dir = osp.join(root, 'TEMP')
|
| 55 |
+
|
| 56 |
+
json_file = osp.join(root, 'corrupted_images.json')
|
| 57 |
+
|
| 58 |
+
if CHECK_IMAGE_FILES:
|
| 59 |
+
corrupted_files = check_images_files(data_dir)
|
| 60 |
+
print("损坏的图片文件有:")
|
| 61 |
+
for file in corrupted_files:
|
| 62 |
+
print(file)
|
| 63 |
+
|
| 64 |
+
if CHECK_TEXT_FILES:
|
| 65 |
+
corrupted_txt_files = check_txt_files(data_dir)
|
| 66 |
+
print("损坏的文本文件有:")
|
| 67 |
+
for file in corrupted_txt_files:
|
| 68 |
+
print(file)
|
| 69 |
+
|
| 70 |
+
if CHECK_IMAGE_FILES_SCENE_BY_SCENE:
|
| 71 |
+
for i in range(3470, 3479 + 1):
|
| 72 |
+
scene_dir = osp.join(data_dir, f'scene_{i:05d}/2D_rendering/')
|
| 73 |
+
os.system(f'cd {scene_dir}; ls -lR | grep "^-" | wc -l')
|
| 74 |
+
corrupted_files = check_images_files(scene_dir)
|
| 75 |
+
print("损坏的图片文件有:")
|
| 76 |
+
for file in corrupted_files:
|
| 77 |
+
print(file)
|
| 78 |
+
|
| 79 |
+
if REMOVE_CORRUPTED_FILES:
|
| 80 |
+
with open(json_file, 'r') as fio:
|
| 81 |
+
filelist = json.load(fio)
|
| 82 |
+
|
| 83 |
+
for i, f in enumerate(filelist):
|
| 84 |
+
file_path = osp.join(root, f)
|
| 85 |
+
if osp.exists(file_path):
|
| 86 |
+
print(file_path)
|
| 87 |
+
|
| 88 |
+
if 'full' in f:
|
| 89 |
+
temp_path = osp.join(temp_dir, f)
|
| 90 |
+
os.makedirs(osp.dirname(temp_path), exist_ok=True)
|
| 91 |
+
copyfile(file_path, temp_path)
|
| 92 |
+
os.remove(file_path)
|
code/resume_missing_data.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import os.path as osp
|
| 3 |
+
from shutil import copytree, rmtree
|
| 4 |
+
|
| 5 |
+
missing_data = [
|
| 6 |
+
'/Structured3D_panorama_01/Structured3D/scene_00206/2D_rendering/141/panorama/full/rgb_coldlight.png',
|
| 7 |
+
'/Structured3D_panorama_07/Structured3D/scene_01412/2D_rendering/143/panorama/full/depth.png',
|
| 8 |
+
'/Structured3D_panorama_09/Structured3D/scene_01815/2D_rendering/237/panorama/full/rgb_coldlight.png',
|
| 9 |
+
'/Structured3D_panorama_13/Structured3D/scene_02608/2D_rendering/345/panorama/full/rgb_coldlight.png',
|
| 10 |
+
'/Structured3D_panorama_05/Structured3D/scene_01010/2D_rendering/1162/panorama/full/depth.png',
|
| 11 |
+
'/Structured3D_panorama_09/Structured3D/scene_01815/2D_rendering/1429/panorama/full/depth.png',
|
| 12 |
+
'/Structured3D_panorama_04/Structured3D/scene_00810/2D_rendering/1817/panorama/full/depth.png',
|
| 13 |
+
'/Structured3D_panorama_10/Structured3D/scene_02011/2D_rendering/2003/panorama/full/rgb_coldlight.png',
|
| 14 |
+
'/Structured3D_panorama_04/Structured3D/scene_00809/2D_rendering/3065/panorama/full/depth.png',
|
| 15 |
+
'/Structured3D_panorama_01/Structured3D/scene_00213/2D_rendering/22731/panorama/full/depth.png',
|
| 16 |
+
'/Structured3D_panorama_01/Structured3D/scene_00213/2D_rendering/22735/panorama/full/depth.png',
|
| 17 |
+
'/Structured3D_panorama_11/Structured3D/scene_02212/2D_rendering/175980/panorama/full/depth.png',
|
| 18 |
+
'/Structured3D_panorama_07/Structured3D/scene_01410/2D_rendering/176231/panorama/full/rgb_coldlight.png',
|
| 19 |
+
'/Structured3D_panorama_07/Structured3D/scene_01410/2D_rendering/180208/panorama/full/depth.png',
|
| 20 |
+
'/Structured3D_panorama_11/Structured3D/scene_02213/2D_rendering/786544/panorama/full/depth.png',
|
| 21 |
+
'/Structured3D_panorama_03/Structured3D/scene_00613/2D_rendering/794918/panorama/full/depth.png',
|
| 22 |
+
'/Structured3D_panorama_11/Structured3D/scene_02212/2D_rendering/1058346/panorama/full/rgb_coldlight.png',
|
| 23 |
+
]
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
if __name__ == '__main__':
|
| 27 |
+
# 替换为你的根目录路径
|
| 28 |
+
root = '/xxx/code'
|
| 29 |
+
|
| 30 |
+
src_dir = osp.join(root, 'share_data')
|
| 31 |
+
dst_dir = osp.join(root, 'Structured3D')
|
| 32 |
+
dst_copy_dir = osp.join(root, 'bak_data')
|
| 33 |
+
|
| 34 |
+
os.makedirs(dst_copy_dir, exist_ok=True)
|
| 35 |
+
|
| 36 |
+
ids = []
|
| 37 |
+
for data_path in missing_data:
|
| 38 |
+
scene = data_path.split('/Structured3D/')[-1].split('/2D_rendering/')[0]
|
| 39 |
+
view = data_path.split('/2D_rendering/')[-1].split('/panorama/')[0]
|
| 40 |
+
ids.append((scene, view))
|
| 41 |
+
|
| 42 |
+
ids = sorted(list(set(ids)))
|
| 43 |
+
|
| 44 |
+
for scene, view in ids:
|
| 45 |
+
src_folder = osp.join(src_dir, view)
|
| 46 |
+
dst_folder = osp.join(dst_dir, scene, '2D_rendering', view)
|
| 47 |
+
dst_copy_folder = osp.join(dst_copy_dir, view)
|
| 48 |
+
|
| 49 |
+
assert osp.exists(src_folder) and osp.isdir(src_folder), f'{src_folder}'
|
| 50 |
+
assert osp.exists(dst_folder) and osp.isdir(dst_folder), f'{dst_folder}'
|
| 51 |
+
|
| 52 |
+
copytree(dst_folder, dst_copy_folder)
|
| 53 |
+
|
| 54 |
+
rmtree(dst_folder)
|
| 55 |
+
copytree(src_folder, dst_folder)
|