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
9ce8405c
Commit
9ce8405c
authored
4 years ago
by
apriestman
Browse files
Options
Downloads
Patches
Plain Diff
Send $Unalloc virtual dir to ingest.
Don't send root folder to ingest.
parent
6a6547bd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/java/src/org/sleuthkit/datamodel/JniDbHelper.java
+6
-1
6 additions, 1 deletion
bindings/java/src/org/sleuthkit/datamodel/JniDbHelper.java
with
6 additions
and
1 deletion
bindings/java/src/org/sleuthkit/datamodel/JniDbHelper.java
+
6
−
1
View file @
9ce8405c
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Arrays
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.LinkedList
;
import
java.util.LinkedList
;
...
@@ -352,7 +353,10 @@ private long addBatchedFilesToDb() {
...
@@ -352,7 +353,10 @@ private long addBatchedFilesToDb() {
null
,
TskData
.
FileKnown
.
UNKNOWN
,
null
,
TskData
.
FileKnown
.
UNKNOWN
,
fileInfo
.
escaped_path
,
fileInfo
.
extension
,
fileInfo
.
escaped_path
,
fileInfo
.
extension
,
false
,
trans
);
false
,
trans
);
newObjIds
.
add
(
objId
);
if
(
fileInfo
.
fsObjId
!=
fileInfo
.
parentObjId
)
{
// Add new file ID to the list to send to ingest unless it is the root folder
newObjIds
.
add
(
objId
);
}
// If we're adding the root directory for the file system, cache it
// If we're adding the root directory for the file system, cache it
if
(
fileInfo
.
parentObjId
==
fileInfo
.
fsObjId
)
{
if
(
fileInfo
.
parentObjId
==
fileInfo
.
fsObjId
)
{
...
@@ -546,6 +550,7 @@ long addUnallocFsBlockFilesParent(long fsObjId, String name) {
...
@@ -546,6 +550,7 @@ long addUnallocFsBlockFilesParent(long fsObjId, String name) {
beginTransaction
();
beginTransaction
();
VirtualDirectory
dir
=
caseDb
.
addVirtualDirectory
(
fsIdToRootDir
.
get
(
fsObjId
),
name
,
trans
);
VirtualDirectory
dir
=
caseDb
.
addVirtualDirectory
(
fsIdToRootDir
.
get
(
fsObjId
),
name
,
trans
);
commitTransaction
();
commitTransaction
();
addDataSourceCallbacks
.
onFilesAdded
(
Arrays
.
asList
(
dir
.
getId
()));
return
dir
.
getId
();
return
dir
.
getId
();
}
catch
(
TskCoreException
ex
)
{
}
catch
(
TskCoreException
ex
)
{
logger
.
log
(
Level
.
SEVERE
,
"Error creating virtual directory "
+
name
+
" under file system ID "
+
fsObjId
,
ex
);
logger
.
log
(
Level
.
SEVERE
,
"Error creating virtual directory "
+
name
+
" under file system ID "
+
fsObjId
,
ex
);
...
...
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