• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

create directory

To the point,
What is the code to create a directory?
0
smile34
Asked:
smile34
  • 2
  • 2
1 Solution
 
ozoCommented:
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
 
makerpCommented:
mkdir makes a dir, this works in NT and UNIX

mkdir("new_dir",777);
0
 
makerpCommented:
sorry ozo, didnt see your post
0
 
ozoCommented:
777 == 01411, you may have meant 0777
0
 
smile34Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now