Portable dot-files (hidden-files) ?

Portable dot-files (hidden-files) ?

am 05.11.2007 07:20:47 von Peter Billam

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

Re: Portable dot-files (hidden-files) ?

am 07.11.2007 06:06:54 von sisyphus359

On Nov 5, 5:20 pm, Peter Billam wrote:
> 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