File::H...::Cocoa(3)
β¨ NAME β¨
okay so bestie, this is the manual page for File::HomeDir::Darwin::Cocoa(3) β the header squishes it all cute into File::H...::Cocoa(3), and itβs part of the User Contributed Perl Documentation set. The official one-liner is: File::HomeDir::Darwin::Cocoa - Find your home and other directories on Darwin (OS X) π
πΈ DESCRIPTION πΈ
This module gives you Darwin-specific implementations for determining the common user directories, using the Cocoa API through Mac::SystemDirectory. In normal usage, this module will always be used via File::HomeDir β thatβs the vibe, iykyk.
Theoretically, this should return the same paths as both of the other Darwin drivers. Theoretically. π
Because this module requires Mac::SystemDirectory, if the module is not installed, File::HomeDir will fall back to File::HomeDir::Darwin. Slay for graceful fallback behavior, honestly.
π¦ 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
π COPYRIGHT π
Copyright 2009 - 2011 Adam Kennedy.
Copyright 2017 - 2020 Jens Rehsack
okay thatβs the whole page, bestie β the source/version says perl v5.42.0 and the date is 2020-09-29, so go off ππ
π¦ 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