mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +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.
|
* @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;
|
Path p = null;
|
||||||
try {
|
try {
|
||||||
p = Files.createTempFile(path, TEMP_FILE_PREFIX, null);
|
p = Files.createTempFile(path, TEMP_FILE_PREFIX, null);
|
||||||
|
@ -386,7 +386,7 @@ final class PhotoRecCarverFileIngestModule implements FileIngestModule {
|
|||||||
if (path == null) {
|
if (path == null) {
|
||||||
throw new IngestModule.IngestModuleException(NbBundle.getMessage(PhotoRecCarverFileIngestModule.class, "PhotoRecIngestModule.nonHostnameUNCPathUsed"));
|
throw new IngestModule.IngestModuleException(NbBundle.getMessage(PhotoRecCarverFileIngestModule.class, "PhotoRecIngestModule.nonHostnameUNCPathUsed"));
|
||||||
}
|
}
|
||||||
if (false == FileUtil.arePermissionsAppropriate(path)) {
|
if (false == FileUtil.hasReadWriteAccess(path)) {
|
||||||
throw new IngestModule.IngestModuleException(
|
throw new IngestModule.IngestModuleException(
|
||||||
NbBundle.getMessage(PhotoRecCarverFileIngestModule.class, "PhotoRecIngestModule.PermissionsNotSufficient")
|
NbBundle.getMessage(PhotoRecCarverFileIngestModule.class, "PhotoRecIngestModule.PermissionsNotSufficient")
|
||||||
+ SEP + path.toString() + SEP // SEP is line breaks to make the dialog display nicely.
|
+ SEP + path.toString() + SEP // SEP is line breaks to make the dialog display nicely.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user