Beispiel #1
0
 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}\"" }));
 }
Beispiel #2
0
 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}\"" }));
 }