private static async Task <bool> TransitionCheck(GoogleDrive drive) { UpdateInfo("Проверка ..."); IEnumerable <string> files = await drive.GetFilesAsync(); if (files != null && files.Count() > 0) { foreach (string name in files) { //if a folder with a special name exists, then the transition has already been if (name == Date.GetFullPrevMonth()) { return(false); } } } return(true); }