mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 19:14:55 +00:00
RawDSP should not accept directories as input
This commit is contained in:
parent
f211e8aec9
commit
1cfaebbb24
@ -191,6 +191,12 @@ public class RawDSProcessor implements DataSourceProcessor, AutoIngestDataSource
|
||||
|
||||
@Override
|
||||
public int canProcess(Path dataSourcePath) throws AutoIngestDataSourceProcessorException {
|
||||
|
||||
// only accept files
|
||||
if (!new File(dataSourcePath.toString()).isFile()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// check file extension for supported types
|
||||
if (!isAcceptedByFiler(dataSourcePath.toFile(), filtersList)) {
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user