Autopsy
4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Public Member Functions | |
LocalFileImporter (SleuthkitCase sleuthkitCase) | |
LocalFileImporter (SleuthkitCase sleuthkitCase, SleuthkitCase.CaseDbTransaction trans) | |
AbstractFile | addLocalFile (File fileOnDisk, String name, String parentPath, Long ctime, Long crtime, Long atime, Long mtime, DataSource dataSource) throws TskCoreException |
Private Member Functions | |
SpecialDirectory | createLocalFilesDir (long parentId, String name) throws TskCoreException |
SpecialDirectory | getOrMakeDirInDataSource (File directory, Content dataSource) throws TskCoreException |
Private Attributes | |
final Map< String, SpecialDirectory > | localFileDirMap = new HashMap<>() |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(LocalFileImporter.class.getName()) |
Utility class for adding local files with specified paths in the data source. It is currently assumed that the data source is empty to start or that at least the paths to the files being added do not exist; no checks will be done to see if folders exist prior to creating them through addLocalFile().
Definition at line 41 of file LocalFileImporter.java.
org.sleuthkit.autopsy.datamodel.utils.LocalFileImporter.LocalFileImporter | ( | SleuthkitCase | sleuthkitCase | ) |
Create a LocalFileImporter.
sleuthkitCase | The current SleuthkitCase |
Definition at line 54 of file LocalFileImporter.java.
org.sleuthkit.autopsy.datamodel.utils.LocalFileImporter.LocalFileImporter | ( | SleuthkitCase | sleuthkitCase, |
SleuthkitCase.CaseDbTransaction | trans | ||
) |
Create a LocalFileImporter. The caller is responsible for committing or rolling back the transaction.
sleuthkitCase | The current SleuthkitCase |
trans | The open CaseDbTransaction |
Definition at line 66 of file LocalFileImporter.java.
AbstractFile org.sleuthkit.autopsy.datamodel.utils.LocalFileImporter.addLocalFile | ( | File | fileOnDisk, |
String | name, | ||
String | parentPath, | ||
Long | ctime, | ||
Long | crtime, | ||
Long | atime, | ||
Long | mtime, | ||
DataSource | dataSource | ||
) | throws TskCoreException |
Add a local file to the database with the specified parameters. Will create any necessary parent folders.
Will not fail if the fileOnDisk does not exist.
fileOnDisk | The local file on disk |
name | The name to use in the data source |
parentPath | The path to use in the data source |
ctime | Change time |
crtime | Created time |
atime | Access time |
mtime | Modified time |
dataSource | The data source to add the file to |
TskCoreException |
Definition at line 91 of file LocalFileImporter.java.
References org.sleuthkit.autopsy.datamodel.utils.LocalFileImporter.getOrMakeDirInDataSource().
|
private |
Create a new LocalDirectory
parentId | The object ID for parent |
name | The name of the new local directory |
TskCoreException |
Definition at line 180 of file LocalFileImporter.java.
Referenced by org.sleuthkit.autopsy.datamodel.utils.LocalFileImporter.getOrMakeDirInDataSource().
|
private |
Returns the SpecialDirectory object corresponding to the given directory, creating it and its parents as needed.
directory | The file to get the SpecialDirectory for |
dataSource | The data source |
TskCoreException |
Definition at line 144 of file LocalFileImporter.java.
References org.sleuthkit.autopsy.datamodel.utils.LocalFileImporter.createLocalFilesDir().
Referenced by org.sleuthkit.autopsy.datamodel.utils.LocalFileImporter.addLocalFile().
|
private |
Definition at line 47 of file LocalFileImporter.java.
|
staticprivate |
Definition at line 42 of file LocalFileImporter.java.
Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.