Autopsy  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

Member Function Documentation

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

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

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

Definition at line 54 of file

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

Member Data Documentation

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

Definition at line 31 of file

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

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