From a69ba481968156a032c83a07968a88962cf613c3 Mon Sep 17 00:00:00 2001 From: Karl Mortensen Date: Mon, 4 Jan 2016 11:57:03 -0500 Subject: [PATCH] rename method --- Core/src/org/sleuthkit/autopsy/coreutils/FileUtil.java | 2 +- .../modules/photoreccarver/PhotoRecCarverFileIngestModule.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/coreutils/FileUtil.java b/Core/src/org/sleuthkit/autopsy/coreutils/FileUtil.java index 2725a22135..29cbd1c4b5 100644 --- a/Core/src/org/sleuthkit/autopsy/coreutils/FileUtil.java +++ b/Core/src/org/sleuthkit/autopsy/coreutils/FileUtil.java @@ -181,7 +181,7 @@ public class FileUtil { * * @return True if we have both read and write access, false otherwise. */ - public static boolean arePermissionsAppropriate(Path path) { + public static boolean hasReadWriteAccess(Path path) { Path p = null; try { p = Files.createTempFile(path, TEMP_FILE_PREFIX, null); diff --git a/Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverFileIngestModule.java b/Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverFileIngestModule.java index aa0e158794..bb8d8ed62f 100755 --- a/Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverFileIngestModule.java +++ b/Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverFileIngestModule.java @@ -386,7 +386,7 @@ final class PhotoRecCarverFileIngestModule implements FileIngestModule { if (path == null) { throw new IngestModule.IngestModuleException(NbBundle.getMessage(PhotoRecCarverFileIngestModule.class, "PhotoRecIngestModule.nonHostnameUNCPathUsed")); } - if (false == FileUtil.arePermissionsAppropriate(path)) { + if (false == FileUtil.hasReadWriteAccess(path)) { throw new IngestModule.IngestModuleException( NbBundle.getMessage(PhotoRecCarverFileIngestModule.class, "PhotoRecIngestModule.PermissionsNotSufficient") + SEP + path.toString() + SEP // SEP is line breaks to make the dialog display nicely.