Esempio n. 1
0
 protected virtual string ConstructDownloadsPath(string fileName, string filePath = "")
 {
     if (string.IsNullOrEmpty(filePath))
     {
         filePath = _settings.GetBoxDownloadsFolderPath();
     }
     if (!filePath.EndsWith(Path.DirectorySeparatorChar.ToString()))
     {
         filePath = $"{filePath}{Path.DirectorySeparatorChar}";
     }
     return($"{filePath}{fileName}");
 }