Skip to content

Commit

Permalink
only show basename/dir, hide local relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhreal committed Dec 20, 2024
1 parent 78228cb commit 4d4ed00
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cogs/createsave.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,14 @@ async def createsave(
try:
await handleTitles(scesys_local, user_id, SAVEDATA_DIRECTORY=savename, SAVEDATA_BLOCKS=saveblocks)
title_id = await obtainCUSA(scesys_local)

if len(uploaded_file_paths_special) <= CREATESAVE_ENC_CHECK_LIMIT and not ignore_secondlayer_checks: # dont want to create unnecessary overhead
path_filter = os.path.join(newUPLOAD_DECRYPTED, "")
path_idx = len(path_filter)
for gamesave in uploaded_file_paths_special:
displaysave = gamesave[path_idx:]
embsl = discord.Embed(
title=f"Gamesaves: Second layer\n{gamesave}",
title=f"Gamesaves: Second layer\n{displaysave}",
description="Checking for supported second layer encryption/compression...",
colour=Color.DEFAULT.value
)
Expand Down

0 comments on commit 4d4ed00

Please sign in to comment.