get_installed_file_list

Function get_installed_file_list 

Source
pub fn get_installed_file_list(name: &str) -> Result<Vec<String>, String>
Expand description

What: Retrieve the list of files currently installed for a package.

Inputs:

  • name: Package name queried via pacman -Ql.

Output:

  • Returns file paths owned by the package or an empty list when it is not installed.

ยงErrors

  • Returns Err when pacman -Ql command execution fails (I/O error)
  • Returns Err when pacman -Ql exits with non-zero status for reasons other than package not found

Details:

  • Logs errors if the command fails for reasons other than the package being absent.