Ns unlink

From AOLserver Wiki
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