Ns mkdir

From AOLserver Wiki
Revision as of 23:30, 14 June 2004 by WikiSysop (talk | contribs) (imported from WiKit id 600)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_mkdir.html


NAME

ns_mkdir - Create a directory

SYNOPSIS

ns_mkdir dir

DESCRIPTION

This command creates a new directory in the filesystem, and throws an error if the target directory already exists.
This is a legacy command from when Tcl did not have this functionality. It is now recomended you use

Tcl's file mkdir command instead. In other words, this:

   ns_mkdir $dir

is equivalent to:

   file mkdir $dir

EXAMPLES

   % ns_mkdir /tmp/ns_mkdir
   % file isdirectory /tmp/ns_mkdir
   1
   % catch {ns_mkdir /tmp} err
   1
   % set err 
   mkdir ("/tmp") failed:  file already exists

SEE ALSO

ns_chmod, ns_link, ns_rename, ns_rmdir, ns_symlink

Category Documentation - Category Core Tcl API