1File::HomeDir::Darwin(3U)ser Contributed Perl DocumentatiFoinle::HomeDir::Darwin(3)
2
3
4
6 File::HomeDir::Darwin - Find your home and other directories on Darwin
7 (OS X)
8
10 This module provides Mac OS X specific file path for determining common
11 user directories in pure perl, by just using $ENV{HOME} without Carbon
12 nor Cocoa API calls. In normal usage this module will always be used
13 via File::HomeDir.
14
16 use File::HomeDir;
17
18 # Find directories for the current user
19 $home = File::HomeDir->my_home; # /Users/mylogin
20 $desktop = File::HomeDir->my_desktop; # /Users/mylogin/Desktop
21 $docs = File::HomeDir->my_documents; # /Users/mylogin/Documents
22 $music = File::HomeDir->my_music; # /Users/mylogin/Music
23 $pics = File::HomeDir->my_pictures; # /Users/mylogin/Pictures
24 $videos = File::HomeDir->my_videos; # /Users/mylogin/Movies
25 $data = File::HomeDir->my_data; # /Users/mylogin/Library/Application Support
26
28 Copyright 2009 - 2011 Adam Kennedy.
29
30 Copyright 2017 - 2020 Jens Rehsack
31
32
33
34perl v5.34.0 2022-01-21 File::HomeDir::Darwin(3)