Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted.

{\bfseries{Alias\+:}} {\ttfamily emptydir\+Sync()}


\begin{DoxyItemize}
\item {\ttfamily dir} {\ttfamily $<$String$>$}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_fs_extra_docs_emptyDir_sync_autotoc_md10995}{}\doxysection{Example\+:}\label{md_sfcode_node_modules_fs_extra_docs_emptyDir_sync_autotoc_md10995}

\begin{DoxyCode}{0}
\DoxyCodeLine{const fs = require('fs-\/extra')}
\DoxyCodeLine{}
\DoxyCodeLine{// assume this directory has a lot of files and folders}
\DoxyCodeLine{fs.emptyDirSync('/tmp/some/dir') }

\end{DoxyCode}
 