ファイルをアップロードしたいのですが、ネストされたフォルダー環境にあります。ディレクトリを作成してファイルをアップロードするのは問題ありませんが、ネストされたディレクトリを使用すると、フォルダーを作成しようとするとストレージ例外が発生します。コード例を次に示します。
CloudFileDirectory rootDirectory = FileShare.GetRootDirectoryReference();
if (rootDirectory.Exists())
{
cloudFileDirectory = rootDirectory.GetDirectoryReference("Folder/SubFolder");
cloudFileDirectory.CreateIfNotExists(); //Exception occur
var file = cloudFileDirectory.GetFileReference("File.txt");
}
ディレクトリのディレクトリを作成するメソッドを作成する必要がありますか、それとももっと簡単な解決策がありますか?