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


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

\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.ensureSymlinkSync(srcpath, dstpath)}
\DoxyCodeLine{// symlink has now been created, including the directory it is to be placed in }

\end{DoxyCode}
 