User Guide
The Source Control Integration API required functions 121
bool SCS_GetFolderList()
Description
This function returns a list of files and folders in the passed-in folder, including pertinent
information such as modified date, size, and whether the item is a folder or file.
Arguments
void *connectionData
, const char *remotePath, itemInfo itemList[ ], const int
numItems
• The connectionData argument is a pointer to the agent’s data that passed into Dreamweaver
during the
Connect() call.
• The remotePath argument is the path of the remote folder that the DLL checks for the
number of items.
• The itemList argument is a preallocated list of itemInfo structures:
• The numItems argument is the number of items that are allocated for the itemList (returned
from
GetFolderListLength).
Returns
A Boolean value: true if successful; false otherwise.
name char[256] Name of file or folder
isFolder
bool true if folder; false if file
month
int Month component of modification date 1-12
day
int Day component of modification date 1-31
year
int Year component of modification date 1900+
hour
int Hour component of modification date 0-23
minutes
int Minute component of modification date 0-59
seconds
int Second component of modification date 0-59
type
char[256] Type of file (if not set by DLL, Dreamweaver uses file
extensions to determine type, as it does now)
size
int In bytes
000_DW_API_Print.book Page 121 Wednesday, August 20, 2003 9:14 AM