Eagle_f91 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to get a script to check to see if a folder exists and if it does not create it. Now I am sure this is basic for you guys but to me it is all new and hard. The code I am using is this:
The code looks fine to me but maybe someone else can see what I am doing wrong.if (!-d "e:/web/public_html/eagle_f91/ffinfo/protected/images/$Game") +{ mkdir("e:/web/public_html/eagle_f91/ffinfo/protected/images/$Game" +); } if (!-d "e:/web/public_html/eagle_f91/ffinfo/protected/images/$Game/$S +ubSet") { mkdir("e:/web/public_html/eagle_f91/ffinfo/protected/images/$Game/ +$SubSet"); } if (!-d "e:/web/public_html/eagle_f91/ffinfo/protected/images/$Game/$S +ubSet/thmb") { mkdir("e:/web/public_html/eagle_f91/ffinfo/protected/images/$Game/ +$SubSet/thmb"); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Creating new folders
by plobsing (Friar) on Feb 03, 2008 at 03:20 UTC | |
Re: Creating new folders
by grep (Monsignor) on Feb 03, 2008 at 03:13 UTC | |
by Eagle_f91 (Acolyte) on Feb 03, 2008 at 03:53 UTC | |
by grep (Monsignor) on Feb 03, 2008 at 04:09 UTC | |
Re: Creating new folders
by kyle (Abbot) on Feb 03, 2008 at 04:26 UTC | |
by Anonymous Monk on Feb 03, 2008 at 10:57 UTC | |
Re: Creating new folders
by ww (Archbishop) on Feb 03, 2008 at 03:25 UTC | |
by Eagle_f91 (Acolyte) on Feb 03, 2008 at 03:55 UTC | |
by cdarke (Prior) on Feb 03, 2008 at 10:34 UTC | |
Re: Creating new folders
by apl (Monsignor) on Feb 03, 2008 at 18:55 UTC |
Back to
Seekers of Perl Wisdom