diff --git a/.gitignore b/.gitignore index 862dee3..0f0a455 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ bin/ /%SystemDrive%/ /.idea/ /TV/ +res diff --git a/copyFile.py b/copyFile.py new file mode 100644 index 0000000..1869c41 --- /dev/null +++ b/copyFile.py @@ -0,0 +1,22 @@ +import os +import shutil + + +def copy_folder(source_folder, destination_folder): + if not os.path.exists(destination_folder): + os.makedirs(destination_folder) + + for item in os.listdir(source_folder): + source = os.path.join(source_folder, item) + destination = os.path.join(destination_folder, item) + + if os.path.isdir(source): + copy_folder(source, destination) + else: + shutil.copy2(source, destination) + +os.makedirs("./res/json") +os.makedirs("./res/jar") +copy_folder("json", "res/json") +copy_folder("jar", "res/jar") +