This commit is contained in:
Fierelier 2022-12-27 20:36:37 +01:00
commit a9e97dc73d
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")