lstatlist


Description:

[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( deprecated = true , since = "1.0.77" ) ]
public Stat[] lstatlist (string path, string[] names) throws Error

Warning: lstatlist is deprecated.

lstat on multiple files

Note:

In new code, use lstatnslist instead

This call allows you to perform the lstat 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 Stat objects, or NULL on error