Package Services
Class Utils
java.lang.Object
Services.Utils
Utility class providing general-purpose helper methods for file operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFilesByNameAndPath(String filename, String path) Returns a list of filenames in the specified directory that contain the given string.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getFilesByNameAndPath
Returns a list of filenames in the specified directory that contain the given string.This method searches only in the top-level of the provided path (non-recursive).
- Parameters:
filename- the string to match within filenamespath- the directory path to search- Returns:
- an ArrayList of matching filenames
-