On 07/02/2013 08:38 AM, Jan Synacek wrote:
# return a list of files in a directory <List of arguments, etc.> <How do we control the results returned? Is any filtering or wildcard support available? File details - "ls" vs. "ls -l"?>
I simply return all the files (their names) in a list. I think that support for additional parameters could be added in the scripton itself, but it really depends on how deep we want to go before recreating the whole operating system:) If I wanted, for example, to see the files' access rights, I would have to call GetInstance() on every file to get its properties and that might be quite slow, especially if the CIMOM and the scripton are not on the same host.
Maybe we could add new association between UnixDirectory and UnixFiles (=all UnixFiles in a directory), so you could get both LogicalFiles and UnixFiles in a directory just in two Associators calls. Is it possible to match these two sets of object together?
Jan