SharePoint SPFolder.SubFolders.Add not actually adding a folder -


I have some documentary libraries which are just standard libraries - any related custom content types or nothing. I am trying to add them to subfolders and in some cases this does not work.

  SPFolder parent = library.RootFolder; SPFolder Kids = parent.SubFolders.Add (subfoldername); Parent.Update (); Child is present = child. Axis; // This is incorrect  

When I try to add a subfolder named M1 spectrum CRC w-out CMN67 E02_files failed to add this folder via code However, although the add method is executed successfully, when I try to add a folder with this exact name through the standard browser-based SharePoint list UI, I successfully add a folder I am but its an al The name is:

M1 spectrum CRC Wi-out CMN67 E02_files _

Keep in mind the indexed underscores in that folder, which was created SharePoint. This is the name of a legal Windows folder and does not contain any HTML-invalid characters. So, what's going on with this? Am I clarifying something?

That's because the folder that ends with _files is a special type of MS Office Client application when The Office application that stores a document as HTML saves all web page resource files such as images and CSS files in this folder. But it can not be tampered with by the SharePoint object model - if you ask me then there is a real mess! The only solution for you is to not create folders that end with _files.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -