SPFeatureDefinition.RootDirectory property

Gets the full local path to the root folder of the Feature.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public string RootDirectory { get; }

Property value

Type: System.String
A string that contains the path to the root folder, for example, C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\contentlightup.

Feature elements reside in the directory in which feature.xml resides or one of its subdirectories.