702 bytes added,
10:50, 28 November 2016 {{Internal/Coding/Basics}}
=== Download a physical Document from a Cloud Storage ===
{{Internal/CodeSnippetInfo|KNO}}
<syntaxhighlight lang="csharp">
// Copy a document from Cloud to a local drive
// sourceFullPath: e.g. via obj.TryGetValue<string>("FULLPATH", out localFullPath))
public bool CloudDownload(UBIKEnvironment environment, string sourceFullPath, string localTargetFullPath)
{
if (environment != null)
{
UBIK.Cloud.CloudFileSystem cfs = (UBIK.Cloud.CloudFileSystem)environment.FileSystem;
if (cfs != null)
return cfs.CloudContainer.Download(sourceFullPath, localTargetFullPath, true);
}
return false;
}
</syntaxhighlight>
[[Category:Basics (internal)|Download Document]]