Created
January 13, 2018 05:03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IEnumerable <FolderInfo> latestFolders = directoryInfo.GetDirectories() | |
.Where(x => Directory.GetFiles(x.FullName, "*", SearchOption.AllDirectories).Count() == 0) | |
.Select(x => new FolderInfo() | |
{ | |
Name = x.Name, | |
CreatedOn = x.CreationTime | |
}) | |
.CatchExceptions(x => Logger.LogError(string.Format("Error while retrieving files in FTP folders"), x)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment