Solved

create directory

Posted on 2000-04-25
5
215 Views
Last Modified: 2010-03-05
To the point,
What is the code to create a directory?
0
Comment
Question by:smile34
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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

624 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