File::H...::Darwin(3)

πŸ¦‹ File::HomeDir::Darwin πŸ¦‹

okay so this is the File::H...::Darwin(3) page, aka the User Contributed Perl Documentation moment for File::HomeDir::Darwin. bestie, we're getting into Mac OS X directory paths today πŸ’…


🌸 NAME 🌸

File::HomeDir::Darwin β€” Find your home and other directories on Darwin (OS X) πŸ“


✨ DESCRIPTION ✨

This module provides Mac OS X specific file path for determining common user directories in pure perl, by just using $ENV{HOME} without Carbon nor Cocoa API calls. no cap, that's the whole vibe 🫢

In normal usage this module will always be used via File::HomeDir. that's the main character it serves 🌈


πŸŽ€ 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 2009 - 2011 Adam Kennedy. πŸ’–

Copyright 2017 - 2020 Jens Rehsack. πŸ’–


and that's the page, bestie ✨ this cutie was brought to you by perl v5.42.0, dated 2020-09-29, and the manual name is File::H...::Darwin(3) β€” periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from