Searches for files.
File Searcher searches for files simply and easily.
- Add one of the options below to the pom.xml file:
<dependency>
<groupId>io.github.wniemiec-io-java</groupId>
<artifactId>file-searcher</artifactId>
<version>LATEST</version>
</dependency>
<dependency>
<groupId>wniemiec.io.java</groupId>
<artifactId>file-searcher</artifactId>
<version>LATEST</version>
</dependency>
- Run
$ mvn install
- Use it
[...]
import wniemiec.io.java.FileSearcher;
[...]
Path workingDirectory = Path.of(".", "src", "test", "java");
FileSearcher searcher = new FileSearcher(workingDirectory);
Path file = searcher.search("FileSearcherTest.java");
System.out.println( file.toAbsolutePath() );
[...]
Property | Parameter type | Return type | Description | Default parameter value |
---|---|---|---|---|
searchAllFilesWithExtension | extension: String |
Set<Path> |
Searches for all files with an extension starting from the specified working directory | - |
search | filename: String |
Path |
Searches for a file starting from the specified working directory | - |
Details about each version are documented in the releases section.
See the documentation on how you can contribute to the project here.
Name | Type | Description |
---|---|---|
dist | Directory |
Released versions |
docs | Directory |
Documentation files |
src | Directory |
Source files |