Members
access :Object
- Description:
Access control for non-Windows users to this folder.
Permissions to Windows folders of non-Windows users and Windows users are handled separately. This setting only applies to non-Windows users. Permissions for Windows users are handled by Windows.
- Source:
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
owner |
Object | Specifies the owner as well as its permissions on this folder. Properties
|
|||||||||
group |
Object | Specifies the user group as well as its permissions on this folder. A folder has a group to which permissions may be assigned. When this is done then any non-Windows user who is a member of that group will be granted the permission that that group has on the folder. Properties
|
|||||||||
allUsers |
Object | Specifies the permissions of all other users on this folder. Properties
|
|||||||||
inherits |
Boolean | Does this folder inherit permissions from its parent folder? |
Access control for non-Windows users to this folder.
Permissions to Windows folders of non-Windows users and Windows users are handled separately. This setting only applies to non-Windows users. Permissions for Windows users are handled by Windows.
Type:
- Object
(readonly) createdTime :Date
The date and time that this folder was created.
Type:
- Date
(readonly) fullPath :String
- Description:
The absolute path of this folder in the virtual file-system.
- Source:
The absolute path of this folder in the virtual file-system.
Type:
- String
hidden :Boolean
- Description:
If this property is set to true, then this folder will not show up in listings. This works independently of access permissions. For example, a folder may be shown but not accessible, or it may be hidden but still accessible.
- Source:
If this property is set to true, then this folder will not show up in listings. This works independently of access permissions. For example, a folder may be shown but not accessible, or it may be hidden but still accessible.
Type:
- Boolean
(readonly) id :String
The ID of this folder.
Type:
- String
(readonly) inbuilt :Boolean
- Description:
Is this an inbuilt folder that's created automatically during installation?
- Source:
Is this an inbuilt folder that's created automatically during installation?
Type:
- Boolean
(readonly) isFolderEmpty :Boolean
- Description:
Is this an empty folder? If it is, then that means this folder has no subfolders in the virtual file-system.
Note that this does not indicate whether or not there are any subfolders or files in mapped folder in the underlying file-system.
- Source:
Is this an empty folder? If it is, then that means this folder has no subfolders in the virtual file-system.
Note that this does not indicate whether or not there are any subfolders or files in mapped folder in the underlying file-system.
Type:
- Boolean
mappingPath :String
- Description:
Controls how the folder is mapped to the underlying file-system. Notes:
- This property always returns null for Virtual folders.
- For Windows folders and Network/Macro folders, mappingPaths are Windows file-system paths. In addition,
Network/Macro folders' mappingPaths may include macros (listed below) or an
environment variable.
- %UserName% - User-name (without domain).
- %DomainName% - Domain name.
- %HomeBaseFolder% - Windows path of Home folder (i.e. parent of users' home folders).
- %ExternalHomeFolder% - [Database users only] Path read from user database.
- For Windows special folders, valid values should be:
- 'Home' (User's home folder)
- 'Personal' (User's My Documents folders)
- 'DesktopDirectory' (User's Desktop folder)
- 'MyPictures' (User's Pictures folder)
- 'MyMusic' (User's My Music folder)
- Source:
Controls how the folder is mapped to the underlying file-system. Notes:
- This property always returns null for Virtual folders.
- For Windows folders and Network/Macro folders, mappingPaths are Windows file-system paths. In addition,
Network/Macro folders' mappingPaths may include macros (listed below) or an
environment variable.
- %UserName% - User-name (without domain).
- %DomainName% - Domain name.
- %HomeBaseFolder% - Windows path of Home folder (i.e. parent of users' home folders).
- %ExternalHomeFolder% - [Database users only] Path read from user database.
- For Windows special folders, valid values should be:
- 'Home' (User's home folder)
- 'Personal' (User's My Documents folders)
- 'DesktopDirectory' (User's Desktop folder)
- 'MyPictures' (User's Pictures folder)
- 'MyMusic' (User's My Music folder)
Type:
- String
(readonly) modifiedTime :Date
The date and time that this folder was last modified.
Type:
- Date
name :String
The name of this folder.
Type:
- String
(readonly) type :String
- Description:
The type of this folder.
- 'VirtualFolder' - Folders of this type don't exist on the actual file system - they permit a virtual folder structure to be created.
- 'WindowsFolder' - Standard Windows folders
- 'WindowsSpecialFolder' - Folders such as My Documents.
- 'NetworkMacroFolder' - Windows folders whose paths are specified by a URL into which various macros may optionally be substituted.
- 'GatewayFolder' - A gateway folder is a directory on a different server to the current CompleteFTP server instance. It is basically a remotely mounted directory (analogous to a network share).
- Source:
The type of this folder.
- 'VirtualFolder' - Folders of this type don't exist on the actual file system - they permit a virtual folder structure to be created.
- 'WindowsFolder' - Standard Windows folders
- 'WindowsSpecialFolder' - Folders such as My Documents.
- 'NetworkMacroFolder' - Windows folders whose paths are specified by a URL into which various macros may optionally be substituted.
- 'GatewayFolder' - A gateway folder is a directory on a different server to the current CompleteFTP server instance. It is basically a remotely mounted directory (analogous to a network share).
Type:
- String
Methods
add(name, type, mappingPath) → {Folder}
- Description:
Adds a subfolder of the given type to this folder. Note that each subfolder of this folder must have a unique name. Subfolders of different folder may have the same name.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
name |
String | Name of the folder to be created. |
type |
String | Type of the folder. Currently, the following types are supported:
|
mappingPath |
String | Controls how the folder is mapped to the underlying file-system.
|
Returns:
- Type
- Folder
getParent() → {Folder}
- Description:
Returns a Folder object representing the parent-folder of this folder. Returns null if this folder is at the top level (i.e. root).
- Source:
Returns:
- Type
- Folder
list() → {Array.<Folder>}
- Description:
Returns an array of Folder objects representing all first-level subfolders of this folder.
- Source:
Returns:
- Type
- Array.<Folder>
remove(recursiveopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
recursive |
Boolean |
<optional> |
false
|
If true, the folder will be deleted recursively. |