API / Minn\Support / Paths

Paths final class

Minn\Support\Paths · public/minn/src/Minn/Support/Paths.php · 75 lines

File-system path and permission spellings.

Public

statictranslationDir(string $domain, string $locale, string $langDir, ?string $customPath, ?Closure $listed = NULL): string|false#

The trailing-slashed directory holding a text domain's {domain}-{locale}.mo: a custom path first, then the language dir's plugins and themes folders, then the dir itself for the default domain; false when none has the file. $listed, when given, lists a folder's files (the textdomain registry's own lister, which plugins may answer for) and is read instead of the disk.

$listed(\Closure(string): array<int, string>)|null
staticnormalize(string $path): string#

Forward slashes only, runs collapsed, a stream wrapper kept, a Windows drive letter upper-cased.

staticsymbolicMode(int $mode): string#

The `ls -l` spelling of a mode: type letter, then rwx for owner, group and world with the setuid, setgid and sticky bits folded in.