Solved

create directory

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Validating the data using Oracle DBD module. 5 67
Perl strange behaviour 5 74
pattern matching in perl 2 111
File Find regex problem 4 67
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…

679 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