File::H...Windows(3)
File::H...Windows(3) π
okay bestie, welcome to the File::H...Windows(3) page β the manual name is literally folded right in at the top, and yes, this is the User Contributed Perl Documentation version. It's all about finding your home and other directories on Windows. πͺβ¨
πΈ NAME πΈ
File::HomeDir::Windows β Find your home and other directories on Windows. π
β¨ SYNOPSIS β¨
use File::HomeDir;
# Find directories for the current user (eg. using Windows XP Professional)
$home = File::HomeDir->my_home; # C:\Documents and Settings\mylogin
$desktop = File::HomeDir->my_desktop; # C:\Documents and Settings\mylogin\Desktop
$docs = File::HomeDir->my_documents; # C:\Documents and Settings\mylogin\My Documents
$music = File::HomeDir->my_music; # C:\Documents and Settings\mylogin\My Documents\My Music
$pics = File::HomeDir->my_pictures; # C:\Documents and Settings\mylogin\My Documents\My Pictures
$videos = File::HomeDir->my_videos; # C:\Documents and Settings\mylogin\My Documents\My Video
$data = File::HomeDir->my_data; # C:\Documents and Settings\mylogin\Local Settings\Application Data
π¦ DESCRIPTION π¦
So this module is where the Windows-specific implementations live for determining common user directories. In normal usage, this module will always be used via File::HomeDir. π
Internally, this module will use Win32::GetFolderPath to fetch the location of your directories. As a result of that, in certain unusual situations (usually found inside large organizations) the methods may return UNC paths such as "\\cifs.local\home$". π
If your application runs on Windows and you want it to work comprehensively everywhere, you may need to implement your own handling for these paths, because they can cause strange behaviour. π«
For example, stat calls to UNC paths may work but block for several seconds, but opendir() may not be able to read any files (creating the appearance of an existing but empty directory). π
To avoid complicating the problem any further, in the rare situation that a UNC path is returned by GetFolderPath, the usual -d validation checks will not be done. No cap. β οΈ
π SUPPORT π
Go check out the support section of the main File::HomeDir module. π«Ά
π AUTHORS π
Adam Kennedy <adamk@cpan.org>β¨Sean M. Burke <sburke@cpan.org>π
π SEE ALSO π
File::HomeDirFile::HomeDir::Win32(legacy)
π COPYRIGHT π
- Copyright 2005 - 2011 Adam Kennedy.
- Copyright 2017 - 2020 Jens Rehsack.
- Some parts copyright 2000 Sean M. Burke.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πΈ
The full text of the license can be found in the LICENSE file included with this module. π§
okay that's the whole page, bestie π β from perl v5.42.0, dated 2020-09-29. Byeee, go find those directories π«Άβ¨
π¦ 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