File::H...::Carbon(3)
π NAME π
okay bestie, welcome to the File::H...::Carbon(3) page from the User Contributed Perl Documentation β this oneβs all about File::HomeDir::Darwin: Find your home and other directories on Darwin (OS X). slay π
π¦ DESCRIPTION π¦
This module is giving Darwin-specific implementations for determining common user directories. In normal usage this module will always be used via File::HomeDir. no cap β¨
Heads up bestie: Note β since this module requiresMac::CarbonandMac::Carbondoes not work with 64-bit perls, on such systems,File::HomeDirwill tryFile::HomeDir::Darwin::Cocoaand then fall back to the (pure Perl)File::HomeDir::Darwin. π«Ά
β¨ SYNOPSIS β¨
use File::HomeDir;
# Find directories for the current user
$home = File::HomeDir->my_home; # /Users/mylogin
$desktop = File::HomeDir->my_desktop; # /Users/mylogin/Desktop
$docs = File::HomeDir->my_documents; # /Users/mylogin/Documents
$music = File::HomeDir->my_music; # /Users/mylogin/Music
$pics = File::HomeDir->my_pictures; # /Users/mylogin/Pictures
$videos = File::HomeDir->my_videos; # /Users/mylogin/Movies
$data = File::HomeDir->my_data; # /Users/mylogin/Library/Application Support
π TODO π
- Test with Mac OS (versions 7, 8, 9) π
- Some better way for
users_*? π§
π COPYRIGHT π
Copyright 2009 - 2011 Adam Kennedy.
Copyright 2017 - 2020 Jens Rehsack
this lil page is from perl v5.42.0, dated 2020-09-29, and the footer name is File::H...::Carbon(3) β bye bestie, mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-File-HomeDir 1.006-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms