private GitHubDirectorySync ResolvePaths(GitHubDirectorySync dirSync) { if (dirSync.locaStoragePath.StartsWith("~/")) { dirSync.locaStoragePath = HostingEnvironment.MapPath(dirSync.locaStoragePath); } return(dirSync); }