\hypertarget{group__Eio__Management}{}\doxysection{Eio file management API.}
\label{group__Eio__Management}\index{Eio file management API.@{Eio file management API.}}


A set of function to manage file asynchronously.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EIO\+\_\+\+API \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga5d624a4441b5093402634f4714a2c652}{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 
EIO\+\_\+\+API \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga038a5dfc5b41e8b41aee7cc050cc7227}{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 
EIO\+\_\+\+API \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_gac2aa17511882469f7ae0b99d20937c7b}{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 
EIO\+\_\+\+API \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga37cef879c14fc76c9f10508ef3a49168}{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 
EIO\+\_\+\+API \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga7b073d9d18ab75caad0eda0342cbfc0e}{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 
EIO\+\_\+\+API \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga89846075eb819eed51a0dc9984dd2440}{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 
EIO\+\_\+\+API \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga53e4e7dc5acc46fee7ffb301727b5f03}{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 
EIO\+\_\+\+API \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga90b445aba3bc352cf5a094059be259bc}{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 
EIO\+\_\+\+API \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Management_ga6e87efb77069b5d7ab965b749350c841}{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}


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

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

\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eio__Management_ga5d624a4441b5093402634f4714a2c652}\label{group__Eio__Management_ga5d624a4441b5093402634f4714a2c652}} 
\index{Eio file management API.@{Eio file management API.}!eio\_file\_chmod@{eio\_file\_chmod}}
\index{eio\_file\_chmod@{eio\_file\_chmod}!Eio file management API.@{Eio file management API.}}
\doxysubsubsection{\texorpdfstring{eio\_file\_chmod()}{eio\_file\_chmod()}}
{\footnotesize\ttfamily EIO\+\_\+\+API \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. 

References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}.

\mbox{\Hypertarget{group__Eio__Management_ga038a5dfc5b41e8b41aee7cc050cc7227}\label{group__Eio__Management_ga038a5dfc5b41e8b41aee7cc050cc7227}} 
\index{Eio file management API.@{Eio file management API.}!eio\_file\_chown@{eio\_file\_chown}}
\index{eio\_file\_chown@{eio\_file\_chown}!Eio file management API.@{Eio file management API.}}
\doxysubsubsection{\texorpdfstring{eio\_file\_chown()}{eio\_file\_chown()}}
{\footnotesize\ttfamily EIO\+\_\+\+API \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 NULL). \\
\hline
{\em group} & The new group to set (can be NULL). \\
\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.

\begin{DoxyNote}{Note}
Some platforms (including Windows) do not support chown(). In that case, this function returns {\ttfamily NULL}. 
\end{DoxyNote}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}.

\mbox{\Hypertarget{group__Eio__Management_gac2aa17511882469f7ae0b99d20937c7b}\label{group__Eio__Management_gac2aa17511882469f7ae0b99d20937c7b}} 
\index{Eio file management API.@{Eio file management API.}!eio\_file\_unlink@{eio\_file\_unlink}}
\index{eio\_file\_unlink@{eio\_file\_unlink}!Eio file management API.@{Eio file management API.}}
\doxysubsubsection{\texorpdfstring{eio\_file\_unlink()}{eio\_file\_unlink()}}
{\footnotesize\ttfamily EIO\+\_\+\+API \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. 

References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}.

\mbox{\Hypertarget{group__Eio__Management_ga37cef879c14fc76c9f10508ef3a49168}\label{group__Eio__Management_ga37cef879c14fc76c9f10508ef3a49168}} 
\index{Eio file management API.@{Eio file management API.}!eio\_file\_mkdir@{eio\_file\_mkdir}}
\index{eio\_file\_mkdir@{eio\_file\_mkdir}!Eio file management API.@{Eio file management API.}}
\doxysubsubsection{\texorpdfstring{eio\_file\_mkdir()}{eio\_file\_mkdir()}}
{\footnotesize\ttfamily EIO\+\_\+\+API \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. 

References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}.

\mbox{\Hypertarget{group__Eio__Management_ga7b073d9d18ab75caad0eda0342cbfc0e}\label{group__Eio__Management_ga7b073d9d18ab75caad0eda0342cbfc0e}} 
\index{Eio file management API.@{Eio file management API.}!eio\_file\_move@{eio\_file\_move}}
\index{eio\_file\_move@{eio\_file\_move}!Eio file management API.@{Eio file management API.}}
\doxysubsubsection{\texorpdfstring{eio\_file\_move()}{eio\_file\_move()}}
{\footnotesize\ttfamily EIO\+\_\+\+API \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. 

References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, and \mbox{\hyperlink{Eio__Legacy_8h_af9cb2b88e673b8a3e6cb533fd1d90e4da77b311eada7957e22527baf72b906813}{EIO\+\_\+\+FILE\+\_\+\+MOVE}}.

\mbox{\Hypertarget{group__Eio__Management_ga89846075eb819eed51a0dc9984dd2440}\label{group__Eio__Management_ga89846075eb819eed51a0dc9984dd2440}} 
\index{Eio file management API.@{Eio file management API.}!eio\_file\_copy@{eio\_file\_copy}}
\index{eio\_file\_copy@{eio\_file\_copy}!Eio file management API.@{Eio file management API.}}
\doxysubsubsection{\texorpdfstring{eio\_file\_copy()}{eio\_file\_copy()}}
{\footnotesize\ttfamily EIO\+\_\+\+API \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. 

References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, and \mbox{\hyperlink{Eio__Legacy_8h_af9cb2b88e673b8a3e6cb533fd1d90e4dab21f36fa998884ac4d36d9c114a88012}{EIO\+\_\+\+FILE\+\_\+\+COPY}}.

\mbox{\Hypertarget{group__Eio__Management_ga53e4e7dc5acc46fee7ffb301727b5f03}\label{group__Eio__Management_ga53e4e7dc5acc46fee7ffb301727b5f03}} 
\index{Eio file management API.@{Eio file management API.}!eio\_dir\_move@{eio\_dir\_move}}
\index{eio\_dir\_move@{eio\_dir\_move}!Eio file management API.@{Eio file management API.}}
\doxysubsubsection{\texorpdfstring{eio\_dir\_move()}{eio\_dir\_move()}}
{\footnotesize\ttfamily EIO\+\_\+\+API \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 EINA\+\_\+\+TRUE to pass it to the main\+\_\+cb or EINA\+\_\+\+FALSE to ignore it.

\begin{DoxyNote}{Note}
if a rename occurs, the filter callback will not be called. 
\end{DoxyNote}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, and \mbox{\hyperlink{Eio__Legacy_8h_af9cb2b88e673b8a3e6cb533fd1d90e4da2a8198feb438c31c0d811f68d960e74e}{EIO\+\_\+\+DIR\+\_\+\+MOVE}}.

\mbox{\Hypertarget{group__Eio__Management_ga90b445aba3bc352cf5a094059be259bc}\label{group__Eio__Management_ga90b445aba3bc352cf5a094059be259bc}} 
\index{Eio file management API.@{Eio file management API.}!eio\_dir\_copy@{eio\_dir\_copy}}
\index{eio\_dir\_copy@{eio\_dir\_copy}!Eio file management API.@{Eio file management API.}}
\doxysubsubsection{\texorpdfstring{eio\_dir\_copy()}{eio\_dir\_copy()}}
{\footnotesize\ttfamily EIO\+\_\+\+API \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 EINA\+\_\+\+TRUE to pass it to the main\+\_\+cb or EINA\+\_\+\+FALSE to ignore it. 

References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, and \mbox{\hyperlink{Eio__Legacy_8h_af9cb2b88e673b8a3e6cb533fd1d90e4dad86557496ac7b04ab5b4fb648b7b2bcd}{EIO\+\_\+\+DIR\+\_\+\+COPY}}.

\mbox{\Hypertarget{group__Eio__Management_ga6e87efb77069b5d7ab965b749350c841}\label{group__Eio__Management_ga6e87efb77069b5d7ab965b749350c841}} 
\index{Eio file management API.@{Eio file management API.}!eio\_dir\_unlink@{eio\_dir\_unlink}}
\index{eio\_dir\_unlink@{eio\_dir\_unlink}!Eio file management API.@{Eio file management API.}}
\doxysubsubsection{\texorpdfstring{eio\_dir\_unlink()}{eio\_dir\_unlink()}}
{\footnotesize\ttfamily EIO\+\_\+\+API \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 EINA\+\_\+\+TRUE to pass it to the main\+\_\+cb or EINA\+\_\+\+FALSE to ignore it. 

References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, and \mbox{\hyperlink{Eio__Legacy_8h_af9cb2b88e673b8a3e6cb533fd1d90e4da40c6d17fda7f6d3dbcc75818afcd7c1b}{EIO\+\_\+\+UNLINK}}.

