2.4.1 Manage Thru Folders
2.4.1.1 Data Structures
2.4.1.1.1 FTHFolderData
FTHFolderData
Folder object data
Data Type | Field Name | Description |
---|---|---|
int | FolderID | ID of a newly created folder |
int | ParentFolderID | ID of a parent folder |
string | Name | Name of new folder |
int | EffectivePermission | Effective access permission for new folder for currently signed user |
DateTime | DateCreated | Timestamp when the folder was created |
DateTime | DateModified | Timestamp when the folder was modified |
int | CreatedByUserID | ID of the user who created the file |
int | ModifiedByUserID | ID of the user who modified the file |
bool | IsDeleted | Flag shows if the folder is deleted |
int | FolderType | One of the following Folder Types: |
2.4.1.2 Methods
2.4.1.2.1 CreateFolder
Creates a folder in Thru file system
FTHFolderData
CreateFolder(Guid sessionID, int parentFolderID, string name)
Parameter Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
parentFolderID | ID for the parent folder where new folder will be created |
name | Name for a new folder |
2.4.1.2.2 DeleteFolder
Deletes a folder in Thru file system
FTHFolderData
DeleteFolder(Guid sessionID, int folderID)
Parameter Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
folderID | ID of the folder to be deleted |
2.4.1.2.3 GetFolder
Retrieves folder data from Thru system by folder ID
FTHFolderData
GetFolder(Guid sessionID, int folderID)
Parameter Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
folderID | ID of the folder to be retrieved |
2.4.1.2.4 GetFolders
Retrieves a list of subfolders in the specified parent folder of Thru file system
FTHFolderData []
GetFolders (Guid sessionID, int parentFolderID, int index, int length)
Parameter Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
parentFolderID | ID of the parent folder where we look for subfolders |
index | Index points to the first subfolder to start retrieval, zero-based |
length | Number of subfolders to retrieve. |
2.4.1.2.5 GetFolderByName
Retrieves a single folder by name in the specified parent folder of Thru file system
FTHFolderData
GetFolderByName(guid SessionID, int parentFolderID, string name)
Parameter Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
parentFolderID | ID of the parent folder where we look for a folder |
name | Name string by which a folder will be retrieved. Result is unambiguous since folder/file name is unique in the parent folder |
2.4.1.2.6 GetRootFolder
Retrieves a Root folder object in Thru file system
FTHFolderData
GetRootFolder (Guid sessionID)
Parameter Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
2.4.1.2.7 MoveFolders
Moves a list of folders to a folder specified by destination folder ID
void
MoveFolders(Guid sessionID, int[] folderIDList, int destinationFolderID)
Parameter Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
folderIDList | List of folder IDs that will be moved to a destination folder |
destinationFolderID | ID of destination folder where the folders will be moved |
2.4.1.2.8 SaveFolder
Saves changes to a folder object
FTHFolderData SaveFolder(Guid sessionID, FTHFolderData folder)
Parameter Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
folder | Folder object |
2.4.1.2.9 GetFolderCount
Retrieves the count of subfolders in the specified parent folder.
int
GetFolderCount (Guid sessionID, int parentFolderID)
Parameter Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
parentFolderID | ID of the parent folder where subfolders are counted |
2.4.1.2.10 GetFolderPath
The method returns folder path in Thru file system as a string
string
GetFolderPath (Guid sessionID, int parentFolderID)
Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
folderID | ID of the folder for which the path is retrieved |
2.4.1.2.11 GetFolderSize
Returns total size of files located in specified folder sub-tree in bytes, long value.
long
GetFolderSize (Guid sessionID, int folderID)
Parameter Name | Description |
---|---|
sessionID | User session returned by one of the Open functions |
folderID | ID of the folder for which the size is retrieved |