Hi all:
I was wondering whether it is possible to programmatically change the name of an SPFolder after it has been created?
e.g.
foreach (SPFolder folder in list.RootFolder.SubFolders)
{
if (folder.Name.Equals("blah"))
{
// set the name of the folder to something else
folder.Name = "blah 2.0";
}
}
Googling so far suggested that MoveTo is the only way of doing so. There are a lot of items inside the folder so I'm reluctant to moving it unless there is absolutely no other ways.
Thanks.