Frederic Udina
2002-05-30 14:43:03 UTC
Hi silent lispers,
I have a problem and seek for a solution.
Within of a lisp program,
I want to copy a file from the current directory to a system directory.
It could be the case (it is often) that the system directory is
write-protected and so (rename-file old new) gives an error.
How can I prevent the error? Is the function ERRSET working? Does it
anything useful?
ERRSET
[function-doc]
Args: (expr [pflag])
Traps errors occurring during the evaluation of EXPR. PFLAG controls
printing
of the error message. Returns the value of the last expression consed with
NIL or NIL.
Any clue?
Frederic Udina
____________________________________________________________________
<***@upf.es> Dept. D'Economia i Empresa Universitat Pompeu Fabra
Ramon Trias Fargas, 25-27 08005 Barcelona SPAIN
tel. 34- 935421756/1763 fax: 34- 935421746 http://libiya.upf.es/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There are many here among us who feel that life is but a joke B.Dy.
I have a problem and seek for a solution.
Within of a lisp program,
I want to copy a file from the current directory to a system directory.
It could be the case (it is often) that the system directory is
write-protected and so (rename-file old new) gives an error.
How can I prevent the error? Is the function ERRSET working? Does it
anything useful?
ERRSET
[function-doc]
Args: (expr [pflag])
Traps errors occurring during the evaluation of EXPR. PFLAG controls
printing
of the error message. Returns the value of the last expression consed with
NIL or NIL.
Any clue?
Frederic Udina
____________________________________________________________________
<***@upf.es> Dept. D'Economia i Empresa Universitat Pompeu Fabra
Ramon Trias Fargas, 25-27 08005 Barcelona SPAIN
tel. 34- 935421756/1763 fax: 34- 935421746 http://libiya.upf.es/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There are many here among us who feel that life is but a joke B.Dy.