public override bool CreateDirectory( string path )
{
path = path.ToAzurePath();
string blobName = String.Concat( path, "/$.dir" );
try
{
CloudBlockBlob dirBlob = _container.GetBlockBlobReference( blobName );
using ( var contentStream = new System.IO.MemoryStream( Encoding.UTF8.GetBytes( "" ) ) )
{
dirBlob.UploadFromStream( contentStream );
}
BlobProperties props = dirBlob.Properties;
props.ContentType = "text/plain";
dirBlob.SetProperties();
}
catch ( Exception )
{
return false;
}
return true;
}