lstatnslist
Description:
[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( since = "1.27.53" ) ]
public StatNS[] lstatnslist (string path, string[] names) throws Error
[ Version ( since = "1.27.53" ) ]
public StatNS[] lstatnslist (string path, string[] names) throws Error
lstat on multiple files
This call allows you to perform the lstatns operation on
multiple files, where all files are in the directory path
. names
is the list of files from this directory.
On return you get a list of stat structs, with a one-to-one correspondence to the names
list. If any name did not exist or could
not be lstat'd, then the st_ino
field of that structure is set to @-1.
This call is intended for programs that want to efficiently list a directory contents without making many round-trips. See also lxattrlist for a similarly efficient call for getting extended attributes.
Parameters:
this |
A GuestfsSession object |
names |
an array of strings |
Returns:
an array of StatNS objects, or NULL on error |