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 requires Mac::Carbon and Mac::Carbon does not work with 64-bit perls, on such systems, File::HomeDir will try File::HomeDir::Darwin::Cocoa and 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 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