Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.coreutils.DriveUtils Class Reference

Static Public Member Functions

static boolean driveExists (String path)
 
static boolean isPartition (String path)
 
static boolean isPhysicalDrive (String path)
 

Private Member Functions

 DriveUtils ()
 

Static Private Attributes

static final String COLON = ":"
 
static final String DEV = "/dev/"
 
static final String PARTITION = "\\\\.\\"
 
static final String PDISK = "\\\\.\\physicaldrive"
 

Detailed Description

Utility methods for working with drives.

Definition at line 29 of file DriveUtils.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.coreutils.DriveUtils.DriveUtils ( )
private

Prevents instantiation.

Definition at line 88 of file DriveUtils.java.

Member Function Documentation

static boolean org.sleuthkit.autopsy.coreutils.DriveUtils.driveExists ( String  path)
static

Determines whether or not a drive exists by reading the first byte and checking if it is a -1.

Parameters
pathThe path to test.
Returns
True or false.

Definition at line 66 of file DriveUtils.java.

Referenced by org.sleuthkit.autopsy.casemodule.Case.updateGUIForCaseOpened().

static boolean org.sleuthkit.autopsy.coreutils.DriveUtils.isPartition ( String  path)
static

Determines whether or not a given path is for a local drive or partition.

Parameters
pathThe path to test.
Returns
True or false.

Definition at line 54 of file DriveUtils.java.

Referenced by org.sleuthkit.autopsy.casemodule.ImageFilePanel.validatePanel().

static boolean org.sleuthkit.autopsy.coreutils.DriveUtils.isPhysicalDrive ( String  path)
static

Determines whether or not a given path is for a physical drive.

Parameters
pathThe path to test.
Returns
True or false.

Definition at line 43 of file DriveUtils.java.

Referenced by org.sleuthkit.autopsy.casemodule.ImageFilePanel.validatePanel().

Member Data Documentation

final String org.sleuthkit.autopsy.coreutils.DriveUtils.COLON = ":"
staticprivate

Definition at line 34 of file DriveUtils.java.

final String org.sleuthkit.autopsy.coreutils.DriveUtils.DEV = "/dev/"
staticprivate

Definition at line 32 of file DriveUtils.java.

final String org.sleuthkit.autopsy.coreutils.DriveUtils.PARTITION = "\\\\.\\"
staticprivate

Definition at line 33 of file DriveUtils.java.

final String org.sleuthkit.autopsy.coreutils.DriveUtils.PDISK = "\\\\.\\physicaldrive"
staticprivate

Definition at line 31 of file DriveUtils.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.