public static IEnumerable <IFileResource> GetFileResources(this IResourceLocator resourceLocator, string directoryPath) { if (resourceLocator == null) { throw new ArgumentNullException(nameof(resourceLocator)); } return(resourceLocator.GetFileResources(directoryPath, true)); }