azureファイル共有にフォルダ構造を作成しようとしています。私はこれをWebアプリケーションからやっています。azureファイル共有にディレクトリ構造を作成
CloudStorageAccount cloudStorageAccount = CloudStorageAccount.Parse(StorageConnectionString);
CloudFileClient cloudFileClient = cloudStorageAccount.CreateCloudFileClient();
//Get a reference for the share
CloudFileShare cloudFileShare = cloudFileClient.GetShareReference(VideosDirectoryName);
// Get a reference to the root directory for the share.
CloudFileDirectory rootDir = cloudFileShare.GetRootDirectoryReference();
// Try to get a reference for the new folder
CloudFileDirectory sampleDir = rootDir.GetDirectoryReference(storagePath);
//create the directory structure
sampleDir.CreateAsync();
storagePathのようになります:私は何も起こりません。このコードを実行すると03 \ 13 \ d68dd25587624b8691a05834466cfc11
\ 2017私のコードは次のようになります。例外はスローされませんが、フォルダーは作成されません。私は間違って何をしていますか?
編集:一方、私はレベル別に作成する必要があると言うthis answerが見つかりました。私はそれを試みます。
レベルごとにビルドするとどうなりますか? –
コマンドを順番に実行すると、最初のディレクトリだけが作成されます。 –