VCOM:VectorWorks:ISDK::ForEachFilePathInFolder
.SDK|SDK ..SDK:Types|SDK Types ..VCOM:VCOM (Vectorworks Component Object Model)|VCOM Basics ..VCOM:Class Reference|VCOM Class Reference
Description
namespace VectorWorks
Member of VCOM:VectorWorks:ISDK
Calls processFile for each file in inStartDirectory. It passes the path, file name, & file extension to that routine.
If doRecursive is set, then each file in subfolders is also passed.
NOTE: this routine only passes files, It does not pass folder names regardless of the setting of doRecursive.
virtual EForEachFileResult VCOM_CALLTYPE ForEachFilePathInFolder(
GS_ForEachFilePathNProcPtr processFile,
IFolderIdentifier* pStartFolderID,
bool doRecursive,
void* pEnv) = 0;
Parameters
processFile GS_ForEachFilePathNProcPtr Callback function to receive notifications. See Remarks. pStartFolderID IFolderIdentifier* <no info> doRecursive bool Reqursively search the folders. pEnv void* Environment pointer passed to the callback function.
Return Value
The enum EForEachFileResult, defined in MiniCadCallBacks.h.
Remarks
typedef EForEachFileResult (*GS_ForEachFilePathNProcPtr)(
const char* fullPath,
const char* fileName,
const char* fileExtension,
CallBackPtr cbp,
void* env);
You may consider using VCOM:VectorWorks:Filing:IApplicationFolders.
Version
Availability: from Vectorworks 2009
See Also
VCOM:VectorWorks:Filing:IApplicationFolders
[[VCOM:VectorWorks:Filing:IApplicationFolders]]