Skip to content

Commit

Permalink
fix payloads folder
Browse files Browse the repository at this point in the history
  • Loading branch information
THZoria authored Mar 19, 2023
1 parent 50f1c71 commit 0a99615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
os.mkdir(os.path.join("SD", "luma"))

# Créer le dossier payload dans le dossier luma du dossier SD s'il n'existe pas
if not os.path.exists("SD/luma/payload"):
os.makedirs("SD/luma/payload")
if not os.path.exists("SD/luma/payloads"):
os.makedirs("SD/luma/payloads")

# Créer le dossier payload dans le dossier luma du dossier SD s'il n'existe pas
if not os.path.exists("SD/boot9strap"):
Expand Down Expand Up @@ -119,7 +119,7 @@
# Déplacer le fichier dans le dossier "SD/luma/payload" s'il s'agit de GodeMode9 (GodMode9.firm)
filename = "GodMode9.firm"
if (os.path.exists(os.path.join("temp", filename))):
destination_folder = os.path.join("SD", "luma", "payload")
destination_folder = os.path.join("SD", "luma", "payloads")
os.makedirs(destination_folder, exist_ok=True)
shutil.move(os.path.join("temp", filename), os.path.join(
destination_folder, os.path.basename(filename)))
Expand Down

0 comments on commit 0a99615

Please sign in to comment.