@ApplicationScoped public class FileDiscoveryServiceImpl extends Object implements FileDiscoveryService
Constructor and Description |
---|
FileDiscoveryServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Collection<Path> |
discoverFiles(Path pathToSearch,
DirectoryStream.Filter<Path> filter)
Discover files.
|
Collection<Path> |
discoverFiles(Path pathToSearch,
DirectoryStream.Filter<Path> filter,
boolean recursive)
Discover files
|
public Collection<Path> discoverFiles(Path pathToSearch, DirectoryStream.Filter<Path> filter, boolean recursive)
FileDiscoveryService
discoverFiles
in interface FileDiscoveryService
pathToSearch
- The root Path to search. Sub-folders are not included.filter
- A filter to restrict the matched files.recursive
- True is sub-folders are to be scannedpublic Collection<Path> discoverFiles(Path pathToSearch, DirectoryStream.Filter<Path> filter)
FileDiscoveryService
discoverFiles
in interface FileDiscoveryService
pathToSearch
- The root Path to search. Sub-folders are not included.filter
- A filter to restrict the matched files.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.