Handle spaces in path names

This commit is contained in:
Mykola Grymalyuk
2021-03-26 09:11:55 -06:00
parent e1a8cdc1d5
commit 9b4fbdfb9a
2 changed files with 13 additions and 11 deletions
+2
View File
@@ -600,6 +600,8 @@ Please build OpenCore first!"""
print("- Coping OpenCore onto EFI partition")
shutil.copytree(self.constants.opencore_release_folder / Path("EFI/OC"), mount_path / Path("EFI/OC"))
shutil.copytree(self.constants.opencore_release_folder / Path("System"), mount_path / Path("System"))
# TODO: Add custom SD Card icon
# Apple only exposes this for Apple-branded card readers as MediaName: SD Card Reader under the root disk with 'diskutil info -plist diskX'
if disk_type == "USB":
print("- Adding External USB Drive icon")
shutil.copy(self.constants.icon_path_external, mount_path)