Solved

create directory

Posted on 2000-04-25
5
176 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now