Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

ListDirectoryInGuest & GetFileInfoInGuest

$
0
0

 

Is it just me, or is ListDirectoryInGuest missing something? Namely VIX_PROPERTY_JOB_RESULT_FILE_SIZE?

 

 

ListDirectoryInGuest returns

 

 

VIX_PROPERTY_JOB_RESULT_ITEM_NAME

VIX_PROPERTY_JOB_RESULT_FILE_FLAGS

VIX_PROPERTY_JOB_RESULT_FILE_MOD_TIME

 

 

GetFileInfoINGuest returns

 

 

VIX_PROPERTY_JOB_RESULT_FILE_SIZE

VIX_PROPERTY_JOB_RESULT_FILE_FLAGS

VIX_PROPERTY_JOB_RESULT_FILE_MOD_TIME

 

 

So, we have the file flags and mod time in both.. and if you want file size information for a directory, you have to call ListDirectoryInGuest, followed by GetFileInfoInGuest for each file found - which seems kinda ineffective. I'd like to propose that future versions of ListDirectoryInGuest  also return VIX_PROPERTY_JOB_RESULT_FILE_SIZE so that you can get a directory listing with filesizewith one call, instead of n + 1 calls (where n is the number of files in the directory).

 

 


Viewing all articles
Browse latest Browse all 34639

Trending Articles