This documentation is archived and is not being maintained.

SP.FolderCollection object

SharePoint 2013

Represents a collection of SP.Folder objects.

Last modified: March 09, 2015

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

var object = new SP.FolderCollection()

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.

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
Show: