Ensures that the link exists. If the directory structure does not exist, it is created.


\begin{DoxyItemize}
\item {\ttfamily srcpath} {\ttfamily $<$String$>$}
\item {\ttfamily dstpath} {\ttfamily $<$String$>$}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_fs_extra_docs_ensureLink_sync_autotoc_md11007}{}\doxysection{Example\+:}\label{md_sfcode_node_modules_fs_extra_docs_ensureLink_sync_autotoc_md11007}

\begin{DoxyCode}{0}
\DoxyCodeLine{const fs = require('fs-\/extra')}
\DoxyCodeLine{}
\DoxyCodeLine{const srcpath = '/tmp/file.txt'}
\DoxyCodeLine{const dstpath = '/tmp/this/path/does/not/exist/file.txt'}
\DoxyCodeLine{fs.ensureLinkSync(srcpath, dstpath)}
\DoxyCodeLine{// link has now been created, including the directory it is to be placed in }

\end{DoxyCode}
 