mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
rename method
This commit is contained in:
parent
3ce23e8b1d
commit
a69ba48196
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user