/src/LinFu.Reflection/Interfaces/IDirectoryListing.cs

http://github.com/philiplaureano/LinFu · C# · 20 lines · 8 code · 1 blank · 11 comment · 0 complexity · c82940ff74f78c183dd61b61efce1888 MD5 · raw file

  1. using System.Collections.Generic;
  2. namespace LinFu.Reflection
  3. {
  4. /// <summary>
  5. /// Represents a class that can list the files
  6. /// in a given directory.
  7. /// </summary>
  8. public interface IDirectoryListing
  9. {
  10. /// <summary>
  11. /// Returns the names of the files in the specified directory
  12. /// that match the specified search pattern.
  13. /// </summary>
  14. /// <param name="path">The directory to search.</param>
  15. /// <param name="searchPattern">The search string to match against the names of the files in the <paramref name="path" />.</param>
  16. /// <returns>The list of files that match the <paramref name="path" /> and <paramref name="searchPattern" /></returns>
  17. IEnumerable<string> GetFiles(string path, string searchPattern);
  18. }
  19. }