private static string GetWindowsDropboxLocation() { var infoFile = GetWindowsDropboxInfoFileLocation(); var infoJson = File.ReadAllText(infoFile); var dropboxLocation = DropboxInfoParser.GetDropboxDirectoryLocationFromJson(infoJson, DropboxInfoParser.DropboxTypes.Business); if (!string.IsNullOrWhiteSpace(dropboxLocation)) { return(dropboxLocation); } return(DropboxInfoParser.GetDropboxDirectoryLocationFromJson(infoJson, DropboxInfoParser.DropboxTypes.Personal)); }
private static string GetWindowsDropboxLocation(string type_) { var infoFile = GetWindowsDropboxInfoFileLocation(); return(DropboxInfoParser.GetDropboxDirectoryLocationFromFile(infoFile, type_)); }