Solved

create directory

Posted on 2000-04-25
5
194 Views
Last Modified: 2010-03-05
To the point,
What is the code to create a directory?
0
Comment
Question by:smile34
  • 2
  • 2
5 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2746688
perldoc -f mkdir
    mkdir FILENAME,MODE
            Creates the directory specified by FILENAME, with
            permissions specified by MODE (as modified by umask). If
            it succeeds it returns TRUE, otherwise it returns FALSE
            and sets `$!' (errno).
0
 
LVL 10

Accepted Solution

by:
makerp earned 50 total points
ID: 2746694
mkdir makes a dir, this works in NT and UNIX

mkdir("new_dir",777);
0
 
LVL 10

Expert Comment

by:makerp
ID: 2746696
sorry ozo, didnt see your post
0
 
LVL 84

Expert Comment

by:ozo
ID: 2746721
777 == 01411, you may have meant 0777
0
 

Author Comment

by:smile34
ID: 2747153
thanks
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Syslog text file into database or into .CSV 19 137
use google analytics code in perl script 2 76
ppm conversion to curl on a module install 8 82
create a gui in perl 3 87
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

774 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question