ResourceFileLister

io.github.srs.utils.loader.ResourceFileLister

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def listConfigurationFileNames(resourcePath: String): Try[List[String]]

Lists only the filenames (without full paths)

Lists only the filenames (without full paths)

Value parameters

resourcePath

the path to the resource directory, e.g., "configuration/default"

Attributes

def listConfigurationFiles(resourcePath: String): Try[List[Path]]

Lists all files in the resources/configuration/default directory Works both in development (IDE) and when packaged as JAR

Lists all files in the resources/configuration/default directory Works both in development (IDE) and when packaged as JAR

Value parameters

resourcePath

the path to the resource directory, e.g., "configuration/default"

Attributes

def listConfigurationFilesWithExtension(resourcePath: String, extension: String): Try[List[Path]]

Filters for specific file extensions

Filters for specific file extensions

Value parameters

extension

the file extension to filter by (without the dot), e.g., "yml" or "yaml"

resourcePath

the path to the resource directory, e.g., "configuration/default"

Attributes