Parameter Description Value
Default
Value
Availability
folder_path
One or more shared folder paths,
separated by commas and around
brackets. If force_parent is "true," and
folder_path does not exist, the
folder_path will be created. If
force_parent is "false," folder_path
must exist or a false value will be
returned. The number of paths must be
the same as the number of names in the
name parameter. The first folder_path
parameter corresponds to the first name
parameter.
String (None) 2 and later
name
One or more new folder names,
separated by commas "," and around
brackets. The number of names must be
the same as the number of folder paths
in the folder_path parameter. The first
name parameter corresponding to the
first folder_path parameter.
String (None) 2 and later
force_parent
Optional.
true: no error occurs if a folder exists
and create parent folders as needed.
false: parent folders are not created.
Boolean false 2 and later
additional
Optional. Additional requested file
information, separated by commas ","
and around brackets. When an additional
option is requested, responded objects
will be provided in the specified
additional option.
Options include:
real_path: return a real path in volume.
size: return file byte size.
owner: return information about file
owner including user name, group name,
UID and GID.
time: return information about time
including last access time, last modified
time, last change time and create time.
perm: return information about file
permission.
type: return a file extension.
real_path,
size,
owner,
time,
perm or
type
(None) 2 and later
Example:
GET /webapi/entry.cgi?api=SYNO.FileStation.CreateFolder&version=2&method=create&
folder_path=%5B%22%2Fvideo%22%5D&name=%5B%22test%22%5D
Response:
<data> object definitions:
Parameter Type Description Availability
folders
<JSON-Style
Array>
Array of <file> objects about file information of a
new folder path.
2 and later
<file> object definition: