19 package org.sleuthkit.autopsy.coreutils;
21 import java.io.BufferedInputStream;
23 import java.io.FileInputStream;
24 import java.io.IOException;
31 private static final String
PDISK =
"\\\\.\\physicaldrive";
32 private static final String
DEV =
"/dev/";
34 private static final String
COLON =
":";
44 return path.toLowerCase().startsWith(PDISK) || path.toLowerCase().startsWith(DEV);
55 return path.toLowerCase().startsWith(PARTITION) && path.toLowerCase().endsWith(COLON);
67 BufferedInputStream br = null;
69 File tmp =
new File(path);
70 br =
new BufferedInputStream(
new FileInputStream(tmp));
73 }
catch (Exception ex) {
80 }
catch (IOException ex) {
static boolean isPhysicalDrive(String path)
static boolean driveExists(String path)
static final String PDISK
static final String COLON
static boolean isPartition(String path)
static final String PARTITION