duuhh (?)

This commit is contained in:
Fierelier 2022-12-02 06:13:36 +00:00
parent a05000a65a
commit 3645f4bcb6
1 changed files with 4 additions and 3 deletions

7
run.py
View File

@ -173,9 +173,10 @@ def main():
for root,dirs,files in os.walk(userPath):
for file in dirs:
ffile = p(userPath,file)
tfile = ffile.replace(opusnt.tmpPath + os.path.sep,"",1)
if opusnt.target["type"] in ["offline","online"]: # FIX THIS!
tfile = tfile.replace(opusnt.target["path"] + os.path.sep,"",1)
if opusnt.target["type"] in ["offline","online"]:
tfile = ffile.replace(opusnt.target["path"] + os.path.sep,"",1)
else:
tfile = ffile.replace(opusnt.tmpPath + os.path.sep,"",1)
user = ffile.replace(userPath + os.path.sep,"",1)
if os.path.isfile(p(ffile,"ntuser.dat")):
regs["user-" +user] = p(tfile,"ntuser.dat")