Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

create directory

Posted on 2000-04-25
5
Medium Priority
?
220 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 85

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 150 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 85

Expert Comment

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

Author Comment

by:smile34
ID: 2747153
thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
Six Sigma Control Plans

876 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