AI OnAI Off
and are administering files in /FileArchive the confusion arises in the moment you get the possibility to edit/change/add Filesummary which in the next moment is not saved or available for edit later on. No error message etc.
This is rather inconsistent behaviour to allow the file summary to be edited/added when the filesummary are not supported and thus arises the confusion.
To make the question possibly even easier and more to the point: Is it possible to make the edited summary of the VirtualPathNativeProvider-files persistent? If yes what are the circumstances this may occur and what is necessary of configuration and/or coding?
private void CreateDir()
{
UnifiedDirectory ud = System.Web.Hosting.HostingEnvironment.VirtualPathProvider.GetDirectory("Mynewversioningfolder") as UnifiedDirectory;
UnifiedDirectory udnew = ud.CreateSubdirectory("MyNewFolder");
}
This folder will appear in the filemanager, but will not be mangeable in any way (you cant even delete it, unless you do that with code).
To make the above folder appear AND WORKING, replace CreateDir with the following code:
private void CreateToDir()
{
UnifiedDirectory ud = System.Web.Hosting.HostingEnvironment.VirtualPathProvider.GetDirectory("Myversioningfolder") as UnifiedDirectory;
UnifiedDirectory udnew = ud.CreateSubdirectory("MyNewFolder");
UnifiedFile uf = udnew.CreateFile("wtf-is-this-really-necessary.gif");
uf.Delete();
}
Is this by some weird design decisions and does it have some explanation which are coherent and if so, I would on behalf of all the other who do not want to spend lots of time guessing how to do creation of directories with Versioning-filesystem, beg you to update the documentation with this pitfall.