Ns unlink

From AOLserver Wiki
Revision as of 15:49, 28 September 2006 by Josephbui (talk | contribs) (Copied from http://www.aolserver.com/docs/devel/tcl/api/file.html#ns_unlink)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

NAME

ns_unlink - Remove a file

SYNOPSIS

ns_unlink ?-nocomplain? filename

DESCRIPTION

This command attempts to remove the file filename. If -nocomplain is not passed in and the removal fails, a Tcl error is generated.
This is a legacy command from when Tcl did not have this functionality. It is now recommended you use Tcl's file delete command instead. In other words, this:
   ns_unlink /tmp/foo

is equivalent to:

   file delete /tmp/foo

EXAMPLES

   # can't think of a non-trivial example here

SEE ALSO

ns_link, ns_mkdir, ns_rename, ns_rmdir, ns_symlink

Category Documentation - Category Core Tcl API