SP.FolderCollection object

Represents a collection of SP.Folder objects.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.FolderCollection()

Members

The FolderCollection object has the following members.

Constructor

The FolderCollection object has the following constructor.

Constructor

Description

FolderCollection

Initializes a new instance of the SP.FolderCollection object.

Methods

The FolderCollection object has the following methods.

Method

Description

add

Adds the folder that is located at the specified URL to the collection.

getByUrl

itemAt

Gets the folder at the specified index in the collection.

Properties

The FolderCollection object has the following properties.

Property

Description

childItemType

item

Gets the folder at the specified index in the collection.

REST resource endpoint

See FolderCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/folders

HTTP requests

This resource supports the following HTTP commands:

GET syntax

GET http://<sitecollection>/<site>/_api/web/folders

POST syntax

POST http://<sitecollection>/<site>/_api/web/folders