CMIS フォルダーには多くのサブフォルダーとドキュメントを含めることができるため、任意の大きさにすることができます。
フォルダをダウンロードする前にユーザーに警告したいと思います。
例:You are about to download 35TB. Are you sure?
プログレス バーにも役立ちます。
リモート CMIS フォルダーの再帰的なサイズを知る最も効率的な方法は何ですか。
getDecendantsを使用した私の素朴なアプローチ (単純化されたコード) :
// Get all descendants
depth = 99999999; // By the way, this is not great
descendants = cmisFolder.getDescendants(depth);
// Add up all sizes
size = 0;
foreach(descendants) {
size += descendant.getSize();
}
私とサーバー間のトラフィックを減らし、より効率的なアプローチはありますか?