SP.View.includeRootFolder Property
Applies to: SharePoint Foundation 2010
Gets or sets a value that specifies whether the current folder is displayed in the list view.
var value = SP.View.get_includeRootFolder();
SP.View.set_includeRootFolder(value);
Property Value
Type: Boolean