private static async Task RemoveThumbsAsync(FullPath path) { if (path.IsDirectory) { var thumbPath = path.RootVolume.GenerateThumbPath(path.Directory); if (thumbPath == null) { return; } await AzureBlobStorageApi.DeleteDirectoryIfExistsAsync(thumbPath); } else { var thumbPath = await path.RootVolume.GenerateThumbPathAsync(path.File); if (thumbPath == null) { return; } await AzureBlobStorageApi.DeleteFileIfExistsAsync(thumbPath); } }