--- layout: docs title: Folder edit_url: "https://github.com/nylas/N1/blob/master/src/flux/models/folder.coffee" ---
The Folder model represents a Nylas Folder object. For more information about Folder on the Nylas Platform, read the Folder API Documentation
NOTE: This is different from a Label
. A Folder
is used for generic
IMAP and Exchange, while Label
s are used for Gmail. The Account
has
the filed organizationUnit
which specifies if the current account uses
either "folder" or "label".
While the two appear fairly similar, they have different behavioral semantics and are treated separately.
Nylas also exposes a set of standard types or categories of folders/ labels: an extended version of [rfc-6154] (http://tools.ietf.org/html/rfc6154), returned as the name of the folder/ label:
NOTE: "starred" and "unread" are no longer folder nor labels. They are now boolean values on messages and threads.
name
: AttributeString The internal name of the folder. Queryable.
displayName
: AttributeString The display-friendly name of the folder. Queryable.