> Let me make question clear, in fact my question
> is how can i create directories recursively.
>
> Do you have any example?
Lixin,
I would appreciate it if you
(1) don't cross-post on multiple lists.
(2) Don't ask the question again after it has already been answered
correctly--it is rude to
Let me make question clear, in fact my question is how can i create directories recursively.
Do you have any example?
Thanks
LixinNote: forwarded message attached.
Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com--- Begin Message ---
My codes is like this:
**
Lixin,
Perl's mkdir function does not do parent directory creation
like the shell command "mkdir -p somedir". I wrote a little function to
get around this.
# make a directory and it's parent if necessarysub
mkdirp { my $dir = shift; my $check;
# if something with this path al
Does sct_1.61 exist? If not,
create it first before making the subdirectory beneath
it.
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Ella CaiSent: Monday, November 15, 2004 7:22 AMTo:
[EMAIL PROTECTED]Cc:
[EMAIL PROTECTED]Subject: [Perl-unix-users]
mkdir questions on
Ella Cai wrote:
> My codes is like this:
> **
> my $new_data_dir = "/var/tmp/sct_1.61/data";
> mkdir ($new_data_dir, 0744) unless (-d $new_data_dir);
> **
>
> /
Ella Cai <[EMAIL PROTECTED]> writes:
> My codes is like this:
> **
> my $new_data_dir = "/var/tmp/sct_1.61/data";
> mkdir ($new_data_dir, 0744) unless (-d $new_data_dir);
> *
My codes is like this:
**
my $new_data_dir = "/var/tmp/sct_1.61/data";
mkdir ($new_data_dir, 0744) unless (-d $new_data_dir);
**
/var/tmp exists, but /sct_1.61/d