Skip to content

AlpmFile

Mark King edited this page Sep 25, 2026 · 1 revision

AlpmFile

One file installed by a package. Found in AlpmPkg::$files.

You never construct this directly.

Properties

All readonly.

Property Type Description
name string File path, relative to the install root
size int File size in bytes
mode int File mode/permissions (as a raw st_mode-style int)

Methods

__toString()

public function __toString(): string

Returns $name.

foreach ($pkg->files as $file) {
    printf("%s (%d bytes)\n", $file, $file->size);
}

Clone this wiki locally