Moves a file or directory, even across devices.


\begin{DoxyItemize}
\item {\ttfamily src} {\ttfamily $<$String$>$}
\item {\ttfamily dest} {\ttfamily $<$String$>$}
\item {\ttfamily options} {\ttfamily $<$Object$>$}
\begin{DoxyItemize}
\item {\ttfamily overwrite} {\ttfamily $<$boolean$>$}\+: overwrite existing file or directory, default is {\ttfamily false}.
\end{DoxyItemize}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_fs_extra_docs_move_sync_autotoc_md11018}{}\doxysection{Example\+:}\label{md_sfcode_node_modules_fs_extra_docs_move_sync_autotoc_md11018}

\begin{DoxyCode}{0}
\DoxyCodeLine{const fs = require('fs-\/extra')}
\DoxyCodeLine{}
\DoxyCodeLine{fs.moveSync('/tmp/somefile', '/tmp/does/not/exist/yet/somefile') }

\end{DoxyCode}


{\bfseries{Using {\ttfamily overwrite} option}}


\begin{DoxyCode}{0}
\DoxyCodeLine{const fs = require('fs-\/extra')}
\DoxyCodeLine{}
\DoxyCodeLine{fs.moveSync('/tmp/somedir', '/tmp/may/already/existed/somedir', \{ overwrite: true \}) }

\end{DoxyCode}
 