I am trying to create a "directory" inside a Container, as long as I have read the rackspace api, to create it you should create a 0 or 1 byte object and assign the value "application/directory" to the Content-Type.
I tried this:
var cloudFilesProvider = new CloudFilesProvider(_cloudIdentity);
Dictionary<string, string> dicHeaders = new Dictionary<string, string>();
dicHeaders.Add("name", "application/directory");
MemoryStream ms = new MemoryStream(1);
cloudFilesProvider.CreateObject(ContainerName, ms, DirectoryPath, 0, dicHeaders);
But I get an exception
The 'Content-Type' header must be modified using the appropriate property or method. Parameter name: name
Do anyone have created these kind of object?