I am going through a code which is trying to make URL for a document within a document library,
string mydocumentpath = "https://" + spSite.HostName +
MyDocumentlibrary.RootFolder.ServerRelativeUrl;
string mySecretEncodedPath = HttpUtility.UrlPathEncode(mydocumentpath ) + "/";
I am bit confused with where this root folder came from and what does "ServerRelativeUrl" is doing here, I already read this [microsoft.sharepoint.splist.rootfolder.aspx][1]microsoft.sharepoint.splist.rootfolder.aspx but couldn't get answer I want.
Also is it alright to change root folder name ?
if it is then what would be the best way of doing it. [1]: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.rootfolder.aspx