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

Static Public Member Functions

static boolean isValid (String path, Case.CaseType caseType)
 

Static Private Member Functions

static boolean pathOnCDrive (String filePath)
 

Static Private Attributes

static final Pattern driveLetterPattern = Pattern.compile("^[Cc]:.*$")
 

Detailed Description

Validates absolute path (e.g. to a data source or case output folder) depending on case type.

Definition at line 29 of file PathValidator.java.

Member Function Documentation

static boolean org.sleuthkit.autopsy.coreutils.PathValidator.isValid ( String  path,
Case.CaseType  caseType 
)
static
static boolean org.sleuthkit.autopsy.coreutils.PathValidator.pathOnCDrive ( String  filePath)
staticprivate

Checks whether a file path contains drive letter defined by pattern.

Parameters
filePathInput file absolute path
Returns
true if path matches the pattern, false otherwise.

Definition at line 54 of file PathValidator.java.

Referenced by org.sleuthkit.autopsy.coreutils.PathValidator.isValid().

Member Data Documentation

final Pattern org.sleuthkit.autopsy.coreutils.PathValidator.driveLetterPattern = Pattern.compile("^[Cc]:.*$")
staticprivate

Definition at line 31 of file PathValidator.java.


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

Copyright © 2012-2016 Basis Technology. Generated on: Fri Sep 29 2017
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.