Click here to get back home

Portable dot-files (hidden-files) ?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Portable dot-files (hidden-files) ? Peter Billam 11-05-2007
Posted by Peter Billam on November 5, 2007, 1:20 am
Please log in for more thread options
Greetings. To get Term::Clui running (finally) on windows, I'll need
to create a dot-directory $HOME/.clui_dir, i.e. a hidden-directory, in
the user's home directory. Assume I can get $HOME with File::HomeDir,
how should I portably create a hidden-directory within it ?

Regards, Peter

--
AUS/TAS/DPIW/CIT/Servers hbt/lnd/l8 6233 3061 http://www.pjb.com.au
Pasaré, pasarémos dice el agua y canta la verdad contra la piedra
-- Pablo Neruda

Posted by sisyphus on November 7, 2007, 12:06 am
Please log in for more thread options
> Greetings. To get Term::Clui running (finally) on windows, I'll need
> to create a dot-directory $HOME/.clui_dir, i.e. a hidden-directory, in
> the user's home directory. Assume I can get $HOME with File::HomeDir,
> how should I portably create a hidden-directory within it ?
>

I thought I replied to this yesterday, but it hasn't shown up yet, so
I'll try again. (Apologies for any duplication):

system("mkdir .clui_dir");
system("attrib +H .clui_dir");

For a more perlish solution, perl also has a 'mkdir' function, so I
guess that could be used instead.
And Win32::File ( a non core module) has a 'SetAttributes' function
that could be used to make the directory hidden.

Cheers,
Rob


Similar ThreadsPosted
Looking for portable signal handling to implement Server Daemon July 29, 2004, 12:33 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap