\HeaderA{existsROOTFile}{Test for Existing ROOT File}{existsROOTFile}
\keyword{manip}{existsROOTFile}
\begin{Description}\relax
Test if a ROOT file does already exist.
\end{Description}
\begin{Usage}
\begin{verbatim}
existsROOTFile(filename, tmp.rm = TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{filename}] name of ROOT file, including full path.
\item[\code{tmp.rm}] logical, if \code{TRUE} then exlude filenames beginning with dQuote(tmp\_).
\end{ldescription}
\end{Arguments}
\begin{Value}
Return \code{TRUE} if file \code{filename} is an already existing \code{\LinkA{ROOT}{ROOT}} file.
\end{Value}
\begin{Note}\relax
It is possible to create temporary \code{\LinkA{ROOT}{ROOT}} files called \dQuote{tmp} or with
\code{filename} starting with \dQuote{tmp\_} which can be overwritten. Thus by default
temporary files will not be recognized by \code{existsROOTFile}. If you want to recognize
temporary files, set \code{tmp.rm = TRUE}.
\end{Note}
\begin{Author}\relax
Christian Stratowa
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{isROOTFile}{isROOTFile}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
existsROOTFile(paste(.path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
\end{ExampleCode}
\end{Examples}

