/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
- using System.Collections.Generic;
- namespace LinFu.Reflection
- {
- /// <summary>
- /// Represents a class that can list the files
- /// in a given directory.
- /// </summary>
- public interface IDirectoryListing
- {
- /// <summary>
- /// Returns the names of the files in the specified directory
- /// that match the specified search pattern.
- /// </summary>
- /// <param name="path">The directory to search.</param>
- /// <param name="searchPattern">The search string to match against the names of the files in the <paramref name="path" />.</param>
- /// <returns>The list of files that match the <paramref name="path" /> and <paramref name="searchPattern" /></returns>
- IEnumerable<string> GetFiles(string path, string searchPattern);
- }
- }