Gets the media path.
If the item is a descendant of /sitecore/media library the path relative to /sitecore/media library is returned with a slash '/' prepended. If not, the absolute path is returned.
Item item = Sitecore.Context.Database.Items["/sitecore/media library/Buildings/House"]; string s = item.Paths.Path; // /Buildings/House
ItemPath Class | Sitecore.Data Namespace