mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Merge pull request #4323 from rcordovano/4461-restore-FilesSet-ctor
4461 Restore FilesSet.ExtensionCondition single arg ctor
This commit is contained in:
commit
7daacb1f3a
@ -824,6 +824,18 @@ public final class FilesSet implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Construct a case-insensitive file name extension condition.
|
||||
*
|
||||
* @param extension The file name extension to be matched.
|
||||
*/
|
||||
public ExtensionCondition(String extension) {
|
||||
// If there is a leading ".", strip it since
|
||||
// AbstractFile.getFileNameExtension() returns just the
|
||||
// extension chars and not the dot.
|
||||
super(extension.startsWith(".") ? extension.substring(1) : extension, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a case-insensitive file name extension condition.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user