Package Services

Class Utils

java.lang.Object
Services.Utils

public class Utils extends Object
Utility class providing general-purpose helper methods for file operations.
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • getFilesByNameAndPath

      public static ArrayList<String> getFilesByNameAndPath(String filename, String path)
      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 filenames
      path - the directory path to search
      Returns:
      an ArrayList of matching filenames