rename method

This commit is contained in:
Karl Mortensen 2016-01-04 11:57:03 -05:00
parent 3ce23e8b1d
commit a69ba48196
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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.