\hypertarget{group__Eio__Management}{}\section{Eio file management A\+PI.}
\label{group__Eio__Management}\index{Eio file management A\+P\+I.@{Eio file management A\+P\+I.}}


A set of function to manage file asynchronously.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_gaa533a9d7b0e5a12b156f3ac6c05bee92}{eio\+\_\+file\+\_\+chmod}} (const char $\ast$path, mode\+\_\+t mode, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Change rights of a path. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga9d9c2a15b447d079a7aa15ad7d2b58fa}{eio\+\_\+file\+\_\+chown}} (const char $\ast$path, const char $\ast$user, const char $\ast$group, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Change owner of a path. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga17cd85a8936ef8c8311ffa9b22b7cd0e}{eio\+\_\+file\+\_\+unlink}} (const char $\ast$path, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Unlink a file/directory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga86b607ea3cd6d8cefa71c5f70eda8617}{eio\+\_\+file\+\_\+mkdir}} (const char $\ast$path, mode\+\_\+t mode, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Create a new directory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga79158e1825dae3325580ef2b9d1f92c5}{eio\+\_\+file\+\_\+move}} (const char $\ast$source, const char $\ast$dest, Eio\+\_\+\+Progress\+\_\+\+Cb progress\+\_\+cb, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Move a file asynchronously. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_gad293eb9311b0aa3ab55fb1aa4238613a}{eio\+\_\+file\+\_\+copy}} (const char $\ast$source, const char $\ast$dest, Eio\+\_\+\+Progress\+\_\+\+Cb progress\+\_\+cb, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Copy a file asynchronously. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga1ff2414a124f8a7274ed42e3184d21a4}{eio\+\_\+dir\+\_\+move}} (const char $\ast$source, const char $\ast$dest, Eio\+\_\+\+Filter\+\_\+\+Direct\+\_\+\+Cb filter\+\_\+cb, Eio\+\_\+\+Progress\+\_\+\+Cb progress\+\_\+cb, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Move a directory and its content asynchronously. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga96f768060ca58abcccf7967c3b8c1bc8}{eio\+\_\+dir\+\_\+copy}} (const char $\ast$source, const char $\ast$dest, Eio\+\_\+\+Filter\+\_\+\+Direct\+\_\+\+Cb filter\+\_\+cb, Eio\+\_\+\+Progress\+\_\+\+Cb progress\+\_\+cb, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Copy a directory and its content asynchronously. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga9896ded4fbbd7d7672015a2dafecb4ff}{eio\+\_\+dir\+\_\+unlink}} (const char $\ast$path, Eio\+\_\+\+Filter\+\_\+\+Direct\+\_\+\+Cb filter\+\_\+cb, Eio\+\_\+\+Progress\+\_\+\+Cb progress\+\_\+cb, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Remove a directory and its content asynchronously. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A set of function to manage file asynchronously. 

The function provided by this A\+PI are the one useful for any file manager. Like moving or copying a file, unlinking it, changing it\textquotesingle{}s access right, ... 

\subsection{Function Documentation}
\mbox{\Hypertarget{group__Eio__Management_gaa533a9d7b0e5a12b156f3ac6c05bee92}\label{group__Eio__Management_gaa533a9d7b0e5a12b156f3ac6c05bee92}} 
\index{Eio file management A\+P\+I.@{Eio file management A\+P\+I.}!eio\+\_\+file\+\_\+chmod@{eio\+\_\+file\+\_\+chmod}}
\index{eio\+\_\+file\+\_\+chmod@{eio\+\_\+file\+\_\+chmod}!Eio file management A\+P\+I.@{Eio file management A\+P\+I.}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+chmod()}{eio\_file\_chmod()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+file\+\_\+chmod (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path,  }\item[{mode\+\_\+t}]{mode,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Change rights of a path. 


\begin{DoxyParams}{Parameters}
{\em path} & The directory path to change access rights. \\
\hline
{\em mode} & The permission to set, follow (mode \& $\sim$umask \& 0777). \\
\hline
{\em done\+\_\+cb} & Callback called when the operation is completed. \\
\hline
{\em error\+\_\+cb} & Callback called from if something goes wrong. \\
\hline
{\em data} & Unmodified user data passed to callbacks. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A reference to the I/O operation.
\end{DoxyReturn}
Set a new permission of a path changing it to the mode passed as argument. It\textquotesingle{}s equivalent to the chmod command. \mbox{\Hypertarget{group__Eio__Management_ga9d9c2a15b447d079a7aa15ad7d2b58fa}\label{group__Eio__Management_ga9d9c2a15b447d079a7aa15ad7d2b58fa}} 
\index{Eio file management A\+P\+I.@{Eio file management A\+P\+I.}!eio\+\_\+file\+\_\+chown@{eio\+\_\+file\+\_\+chown}}
\index{eio\+\_\+file\+\_\+chown@{eio\+\_\+file\+\_\+chown}!Eio file management A\+P\+I.@{Eio file management A\+P\+I.}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+chown()}{eio\_file\_chown()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+file\+\_\+chown (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path,  }\item[{const char $\ast$}]{user,  }\item[{const char $\ast$}]{group,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Change owner of a path. 


\begin{DoxyParams}{Parameters}
{\em path} & The directory path to change owner. \\
\hline
{\em user} & The new user to set (can be N\+U\+LL). \\
\hline
{\em group} & The new group to set (can be N\+U\+LL). \\
\hline
{\em done\+\_\+cb} & Callback called when the operation is completed. \\
\hline
{\em error\+\_\+cb} & Callback called from if something goes wrong. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A reference to the I/O operation.
\end{DoxyReturn}
This function will change the owner of a path, setting it to the user and group passed as argument. It\textquotesingle{}s equivalent to the chown shell command. \mbox{\Hypertarget{group__Eio__Management_ga17cd85a8936ef8c8311ffa9b22b7cd0e}\label{group__Eio__Management_ga17cd85a8936ef8c8311ffa9b22b7cd0e}} 
\index{Eio file management A\+P\+I.@{Eio file management A\+P\+I.}!eio\+\_\+file\+\_\+unlink@{eio\+\_\+file\+\_\+unlink}}
\index{eio\+\_\+file\+\_\+unlink@{eio\+\_\+file\+\_\+unlink}!Eio file management A\+P\+I.@{Eio file management A\+P\+I.}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+unlink()}{eio\_file\_unlink()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+file\+\_\+unlink (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Unlink a file/directory. 


\begin{DoxyParams}{Parameters}
{\em path} & The path to unlink. \\
\hline
{\em done\+\_\+cb} & Callback called when the operation is completed. \\
\hline
{\em error\+\_\+cb} & Callback called from if something goes wrong. \\
\hline
{\em data} & Unmodified user data passed to callbacks. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A reference to the I/O operation.
\end{DoxyReturn}
This function will erase a file. \mbox{\Hypertarget{group__Eio__Management_ga86b607ea3cd6d8cefa71c5f70eda8617}\label{group__Eio__Management_ga86b607ea3cd6d8cefa71c5f70eda8617}} 
\index{Eio file management A\+P\+I.@{Eio file management A\+P\+I.}!eio\+\_\+file\+\_\+mkdir@{eio\+\_\+file\+\_\+mkdir}}
\index{eio\+\_\+file\+\_\+mkdir@{eio\+\_\+file\+\_\+mkdir}!Eio file management A\+P\+I.@{Eio file management A\+P\+I.}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+mkdir()}{eio\_file\_mkdir()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+file\+\_\+mkdir (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path,  }\item[{mode\+\_\+t}]{mode,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Create a new directory. 


\begin{DoxyParams}{Parameters}
{\em path} & The directory path to create. \\
\hline
{\em mode} & The permission to set, follow (mode \& $\sim$umask \& 0777). \\
\hline
{\em done\+\_\+cb} & Callback called when the operation is completed. \\
\hline
{\em error\+\_\+cb} & Callback called from if something goes wrong. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A reference to the I/O operation.
\end{DoxyReturn}
Creates a new directory using the mode provided. \mbox{\Hypertarget{group__Eio__Management_ga79158e1825dae3325580ef2b9d1f92c5}\label{group__Eio__Management_ga79158e1825dae3325580ef2b9d1f92c5}} 
\index{Eio file management A\+P\+I.@{Eio file management A\+P\+I.}!eio\+\_\+file\+\_\+move@{eio\+\_\+file\+\_\+move}}
\index{eio\+\_\+file\+\_\+move@{eio\+\_\+file\+\_\+move}!Eio file management A\+P\+I.@{Eio file management A\+P\+I.}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+move()}{eio\_file\_move()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+file\+\_\+move (\begin{DoxyParamCaption}\item[{const char $\ast$}]{source,  }\item[{const char $\ast$}]{dest,  }\item[{Eio\+\_\+\+Progress\+\_\+\+Cb}]{progress\+\_\+cb,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Move a file asynchronously. 


\begin{DoxyParams}{Parameters}
{\em source} & Should be the name of the file to move the data from. \\
\hline
{\em dest} & Should be the name of the file to move the data to. \\
\hline
{\em progress\+\_\+cb} & Callback called to know the progress of the move. \\
\hline
{\em done\+\_\+cb} & Callback called when the move is done. \\
\hline
{\em error\+\_\+cb} & Callback called when something goes wrong. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A reference to the I/O operation.

an Eio\+\_\+\+File pointer, handler to the move operation, can be used to cancel the operation
\end{DoxyReturn}
This function will copy a file from source to dest. It will try to use splice if possible, if not it will fallback to mmap/write. It will try to preserve access rights, but not user/group identification. \mbox{\Hypertarget{group__Eio__Management_gad293eb9311b0aa3ab55fb1aa4238613a}\label{group__Eio__Management_gad293eb9311b0aa3ab55fb1aa4238613a}} 
\index{Eio file management A\+P\+I.@{Eio file management A\+P\+I.}!eio\+\_\+file\+\_\+copy@{eio\+\_\+file\+\_\+copy}}
\index{eio\+\_\+file\+\_\+copy@{eio\+\_\+file\+\_\+copy}!Eio file management A\+P\+I.@{Eio file management A\+P\+I.}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+copy()}{eio\_file\_copy()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+file\+\_\+copy (\begin{DoxyParamCaption}\item[{const char $\ast$}]{source,  }\item[{const char $\ast$}]{dest,  }\item[{Eio\+\_\+\+Progress\+\_\+\+Cb}]{progress\+\_\+cb,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Copy a file asynchronously. 


\begin{DoxyParams}{Parameters}
{\em source} & Should be the name of the file to copy the data from. \\
\hline
{\em dest} & Should be the name of the file to copy the data to. \\
\hline
{\em progress\+\_\+cb} & Callback called to know the progress of the copy. \\
\hline
{\em done\+\_\+cb} & Callback called when the copy is done. \\
\hline
{\em error\+\_\+cb} & Callback called when something goes wrong. \\
\hline
{\em data} & Unmodified user data passed to callbacks\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an Eio\+\_\+\+File pointer, handler to the copy operation, can be used to cancel the operation
\end{DoxyReturn}
This function will copy a file from source to dest. It will try to use splice if possible, if not it will fallback to mmap/write. It will try to preserve access rights, but not user/group identification. \mbox{\Hypertarget{group__Eio__Management_ga1ff2414a124f8a7274ed42e3184d21a4}\label{group__Eio__Management_ga1ff2414a124f8a7274ed42e3184d21a4}} 
\index{Eio file management A\+P\+I.@{Eio file management A\+P\+I.}!eio\+\_\+dir\+\_\+move@{eio\+\_\+dir\+\_\+move}}
\index{eio\+\_\+dir\+\_\+move@{eio\+\_\+dir\+\_\+move}!Eio file management A\+P\+I.@{Eio file management A\+P\+I.}}
\subsubsection{\texorpdfstring{eio\+\_\+dir\+\_\+move()}{eio\_dir\_move()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+dir\+\_\+move (\begin{DoxyParamCaption}\item[{const char $\ast$}]{source,  }\item[{const char $\ast$}]{dest,  }\item[{Eio\+\_\+\+Filter\+\_\+\+Direct\+\_\+\+Cb}]{filter\+\_\+cb,  }\item[{Eio\+\_\+\+Progress\+\_\+\+Cb}]{progress\+\_\+cb,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Move a directory and its content asynchronously. 


\begin{DoxyParams}{Parameters}
{\em source} & Should be the name of the directory to copy the data from. \\
\hline
{\em dest} & Should be the name of the directory to copy the data to. \\
\hline
{\em filter\+\_\+cb} & Possible to deny the move of some files/directories. \\
\hline
{\em progress\+\_\+cb} & Callback called to know the progress of the copy. \\
\hline
{\em done\+\_\+cb} & Callback called when the copy is done. \\
\hline
{\em error\+\_\+cb} & Callback called when something goes wrong. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A reference to the I/O operation.

an Eio\+\_\+\+File pointer, handler to the move operation, can be used to cancel the operation
\end{DoxyReturn}
This function will move a directory and all its content from source to dest. It will try first to rename the directory, if not it will try to use splice if possible, if not it will fallback to mmap/write. It will try to preserve access rights, but not user/group identity. Every file will be passed to the filter\+\_\+cb, so it\textquotesingle{}s your job to decide if you want to pass the file to the main\+\_\+cb or not. Return E\+I\+N\+A\+\_\+\+T\+R\+UE to pass it to the main\+\_\+cb or E\+I\+N\+A\+\_\+\+F\+A\+L\+SE to ignore it.

\begin{DoxyNote}{Note}
if a rename occurs, the filter callback will not be called. 
\end{DoxyNote}
\mbox{\Hypertarget{group__Eio__Management_ga96f768060ca58abcccf7967c3b8c1bc8}\label{group__Eio__Management_ga96f768060ca58abcccf7967c3b8c1bc8}} 
\index{Eio file management A\+P\+I.@{Eio file management A\+P\+I.}!eio\+\_\+dir\+\_\+copy@{eio\+\_\+dir\+\_\+copy}}
\index{eio\+\_\+dir\+\_\+copy@{eio\+\_\+dir\+\_\+copy}!Eio file management A\+P\+I.@{Eio file management A\+P\+I.}}
\subsubsection{\texorpdfstring{eio\+\_\+dir\+\_\+copy()}{eio\_dir\_copy()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+dir\+\_\+copy (\begin{DoxyParamCaption}\item[{const char $\ast$}]{source,  }\item[{const char $\ast$}]{dest,  }\item[{Eio\+\_\+\+Filter\+\_\+\+Direct\+\_\+\+Cb}]{filter\+\_\+cb,  }\item[{Eio\+\_\+\+Progress\+\_\+\+Cb}]{progress\+\_\+cb,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Copy a directory and its content asynchronously. 


\begin{DoxyParams}{Parameters}
{\em source} & Should be the name of the directory to copy the data from. \\
\hline
{\em dest} & Should be the name of the directory to copy the data to. \\
\hline
{\em filter\+\_\+cb} & Possible to deny the move of some files/directories. \\
\hline
{\em progress\+\_\+cb} & Callback called to know the progress of the copy. \\
\hline
{\em done\+\_\+cb} & Callback called when the copy is done. \\
\hline
{\em error\+\_\+cb} & Callback called when something goes wrong. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A reference to the I/O operation.

an Eio\+\_\+\+File pointer, handler to the copy operation, can be used to cancel the operation
\end{DoxyReturn}
This function will copy a directory and all its content from source to dest. It will try to use splice if possible, if not it will fallback to mmap/write. It will try to preserve access rights, but not user/group identity. Every file will be passed to the filter\+\_\+cb, so it\textquotesingle{}s your job to decide if you want to pass the file to the main\+\_\+cb or not. Return E\+I\+N\+A\+\_\+\+T\+R\+UE to pass it to the main\+\_\+cb or E\+I\+N\+A\+\_\+\+F\+A\+L\+SE to ignore it. \mbox{\Hypertarget{group__Eio__Management_ga9896ded4fbbd7d7672015a2dafecb4ff}\label{group__Eio__Management_ga9896ded4fbbd7d7672015a2dafecb4ff}} 
\index{Eio file management A\+P\+I.@{Eio file management A\+P\+I.}!eio\+\_\+dir\+\_\+unlink@{eio\+\_\+dir\+\_\+unlink}}
\index{eio\+\_\+dir\+\_\+unlink@{eio\+\_\+dir\+\_\+unlink}!Eio file management A\+P\+I.@{Eio file management A\+P\+I.}}
\subsubsection{\texorpdfstring{eio\+\_\+dir\+\_\+unlink()}{eio\_dir\_unlink()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+dir\+\_\+unlink (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path,  }\item[{Eio\+\_\+\+Filter\+\_\+\+Direct\+\_\+\+Cb}]{filter\+\_\+cb,  }\item[{Eio\+\_\+\+Progress\+\_\+\+Cb}]{progress\+\_\+cb,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Remove a directory and its content asynchronously. 


\begin{DoxyParams}{Parameters}
{\em path} & Should be the name of the directory to destroy. \\
\hline
{\em filter\+\_\+cb} & Possible to deny the move of some files/directories. \\
\hline
{\em progress\+\_\+cb} & Callback called to know the progress of the copy. \\
\hline
{\em done\+\_\+cb} & Callback called when the copy is done. \\
\hline
{\em error\+\_\+cb} & Callback called when something goes wrong. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A reference to the I/O operation.

an Eio\+\_\+\+File pointer, handler to the unlink operation, can be used to cancel the operation
\end{DoxyReturn}
This function will remove a directory and all its content. Every file will be passed to the filter\+\_\+cb, so it\textquotesingle{}s your job to decide if you want to pass the file to the main\+\_\+cb or not. Return E\+I\+N\+A\+\_\+\+T\+R\+UE to pass it to the main\+\_\+cb or E\+I\+N\+A\+\_\+\+F\+A\+L\+SE to ignore it. 