public static async Task <bool> DownsyncFromLocalStore(BlockStorageURI blockStorageURI, string localPath, VersionIndexURI versionIndexURI) { return(await RunLongtailCommand(null, new string[] { "downsync", "--source-path", $"\"{(string)versionIndexURI}\"", "--target-path", $"\"{localPath}\"", "--storage-uri", $"\"{(string)blockStorageURI}\"" })); }
public static async Task <bool> DownsyncFromGSBucket(GoogleOAuthFlow.ApplicationDefaultCredentialsFile applicationDefaultCredentialsFile, BlockStorageURI blockStorageURI, string localPath, VersionIndexURI versionIndexURI) { return(await RunLongtailCommand(applicationDefaultCredentialsFile, new string[] { "downsync", "--source-path", $"\"{(string)versionIndexURI}\"", "--target-path", $"\"{localPath}\"", "--storage-uri", $"\"{(string)blockStorageURI}\"" })); }