use File::Path 'mkpath'; CreateIfNotPresent( "e:/web/public_html/eagle_f91/ffinfo/protected/ima +ges/$Game" ); CreateIfNotPresent( "e:/web/public_html/eagle_f91/ffinfo/protected/ima +ges/$Game/$SubSet" ); CreateIfNotPresent( "e:/web/public_html/eagle_f91/ffinfo/protected/ima +ges/$Game/$SubSet/thmb" ); sub CreateIfNotPresent { my ( $dir ) = @_; unless (-d $dir) { mkpath($dir) or die "Could not mkpath '$dir': $!\n" } }
In reply to Re: Creating new folders
by apl
in thread Creating new folders
by Eagle_f91
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |