Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
13fa58fc
Commit
13fa58fc
authored
2 years ago
by
Greg DiCristofaro
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of github.com:sleuthkit/sleuthkit into 7013-customCallback
parents
830bf0e0
5112db50
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
db_diff/tskdbdiff.py
+19
-10
19 additions, 10 deletions
db_diff/tskdbdiff.py
with
19 additions
and
10 deletions
db_diff/tskdbdiff.py
+
19
−
10
View file @
13fa58fc
...
...
@@ -999,18 +999,27 @@ def normalize_tsk_objects_path(guid_util: TskGuidUtils, objid: int,
path_parts
=
path_parts
[:
-
1
]
if
path_parts
and
len
(
path_parts
)
>=
2
:
for
idx
in
range
(
0
,
len
(
path_parts
)
-
1
):
if
path_parts
[
idx
].
lower
()
==
"
reports
"
and
\
path_parts
[
idx
+
1
].
lower
().
startswith
(
"
autopsytestcase html report
"
):
path_parts
=
[
"
Reports
"
,
"
AutopsyTestCase HTML Report
"
]
break
if
path_parts
[
idx
].
lower
()
==
"
reports
"
and
\
"
html report
"
in
path_parts
[
idx
+
1
].
lower
()
and
\
len
(
path_parts
)
>
idx
+
2
and
\
path_parts
[
idx
+
2
].
lower
().
endswith
(
"
report.html
"
):
path_parts
=
[
"
Reports
"
,
"
html-report.html
"
]
is_leapp
=
False
for
leapp_module
in
[
'
aleapp
'
,
'
ileapp
'
]:
if
len
(
path_parts
)
>
0
and
path_parts
[
1
].
lower
()
==
leapp_module
and
\
path_parts
[
-
1
].
lower
()
==
'
index.html
'
:
path_parts
=
[
'
ModuleOutput
'
,
leapp_module
,
'
index.html
'
]
is_leapp
=
True
break
if
not
is_leapp
:
for
idx
in
range
(
0
,
len
(
path_parts
)
-
1
):
if
path_parts
[
idx
].
lower
()
==
"
reports
"
and
\
path_parts
[
idx
+
1
].
lower
().
startswith
(
"
autopsytestcase html report
"
):
path_parts
=
[
"
Reports
"
,
"
AutopsyTestCase HTML Report
"
]
break
if
path_parts
[
idx
].
lower
()
==
"
reports
"
and
\
"
html report
"
in
path_parts
[
idx
+
1
].
lower
()
and
\
len
(
path_parts
)
>
idx
+
2
and
\
path_parts
[
idx
+
2
].
lower
().
endswith
(
"
report.html
"
):
path_parts
=
[
"
Reports
"
,
"
html-report.html
"
]
break
path
=
os
.
path
.
join
(
*
path_parts
)
if
len
(
path_parts
)
>
0
else
'
/
'
return
path
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment