Config:...or::File(3)
π NAME π
okay bestie, this is the manual page for Config::Generator::File(3) β yep, from the User Contributed Perl Documentation β and the name line is literally:
Config::Generator::File - Config::Generator file support
periodt. now letβs get into it β¨
π DESCRIPTION π
This module lowkey makes handling files, directories, and symbolic links way easier π«Ά. The whole goal is to do all the file-related operations through this module so thereβs a consistent vibe when dealing with the Config::Generator variables: $NoAction, $RootDir, and $Verbosity. no cap, consistency is the main character here π
.
On top of that, it can generate rpm-compatible spec file snippets, and the yacg command can use a "manifest" file to record which files it actually created. This is required so you can βclean out the junkβ β see yacgβs --clean option. itβs giving tidy little filesystem goblin energy π§
β¨ FUNCTIONS β¨
This module provides the following functions β and bestie, none of them are exported by default π:
ensure_directory(PATH)β make sure the givenPATHis a directory πensure_file(PATH, CONTENTS)β make sure the givenPATHis a file with the givenCONTENTSβ¨ensure_symlink(PATH, TARGET)β make sure the givenPATHis a symbolic link with the givenTARGETπensure_mode(PATH, MODE)β make sure the givenPATHhas the given numericalMODEπ₯ensure_user(PATH, USER)β make sure the givenPATHis owned by the givenUSERπensure_group(PATH, GROUP)β make sure the givenPATHis owned by the givenGROUPπΈfiles_manifest()β return the list of all the files that have been manipulated by this module π¦files_spec()β return the list of all the files that have been manipulated by this module, in a format compatible with rpmβs spec%filesπhandle_manifest(PATH, CLEAN)β write the list of all the files that have been manipulated by this module in a"manifest"file at the givenPATH; ifCLEANis true, also remove all the files and directories that were in the previous manifest and are not present anymore π§Ήhandle_spec(PATH)β write the list of all the files that have been manipulated by this module in a"spec"file at the givenPATHβ
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons>
Copyright (C) CERN 2013-2016
and the cute little footer sign-off bestie: this page is from perl v5.32.1, dated 2019-07-26 β bye, stay slay, go touch some files π
π¦ where this page comes from
- epel 9: perl-Config-Generator 1.0-10.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms