Make sync folder hidden (for real now)

This commit is contained in:
Lx32 2024-01-15 19:46:42 +01:00 committed by GitHub
parent d8412089bb
commit d1ca14424a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -267,7 +267,7 @@ alt_command_list={
} }
def create_shortcut_new(games,rdhome): def create_shortcut_new(games,rdhome):
old_games=os.listdir(rdhome+"/sync/") old_games=os.listdir(rdhome+"/.sync/")
for game in games: for game in games:
try: try:
@ -276,7 +276,7 @@ def create_shortcut_new(games,rdhome):
except ValueError: except ValueError:
print(game[0]+" is a new game!") print(game[0]+" is a new game!")
path=rdhome+"/sync/"+game[0] path=rdhome+"/.sync/"+game[0]
print("Go to path: "+path) print("Go to path: "+path)
if not os.path.exists(path): if not os.path.exists(path):
os.makedirs(path) os.makedirs(path)
@ -318,7 +318,7 @@ def create_shortcut_new(games,rdhome):
print(old_games) print(old_games)
for game in old_games: for game in old_games:
if game: if game:
shutil.rmtree(rdhome+"/sync/"+game) shutil.rmtree(rdhome+"/.sync/"+game)
os.system("boilr --no-ui") os.system("boilr --no-ui")