Created
January 13, 2018 05:04
-
-
Save hbulens/613af1a70d18f277bd1e14809c822b59 to your computer and use it in GitHub Desktop.
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) | |
.CatchExceptions(x => Logger.LogError(string.Format("Error while retrieving files in FTP folders"), x)) | |
.Select(x => new FolderInfo() { Name = x.Name, CreatedOn = x.CreationTime}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment