\hypertarget{group__Eina__File__Group}{\section{File}
\label{group__Eina__File__Group}\index{File@{File}}
}


Functions to handle files and directories.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{struct__Eina__File__Direct__Info}{\-\_\-\-Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info}
\begin{DoxyCompactList}\small\item\em A structure to store informations of a path. \end{DoxyCompactList}\item 
struct \hyperlink{struct__Eina__Stat}{\-\_\-\-Eina\-\_\-\-Stat}
\begin{DoxyCompactList}\small\item\em A structure to store informations of a path. \end{DoxyCompactList}\item 
struct \hyperlink{struct__Eina__File__Line}{\-\_\-\-Eina\-\_\-\-File\-\_\-\-Line}
\begin{DoxyCompactList}\small\item\em A structure to store information of line. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{group__Eina__File__Group_ga868d33cdb2c1a17ad3d76efc6bbbd5e0}{\#define \hyperlink{group__Eina__File__Group_ga868d33cdb2c1a17ad3d76efc6bbbd5e0}{E\-I\-N\-A\-\_\-\-P\-A\-T\-H\-\_\-\-M\-A\-X}~8192}\label{group__Eina__File__Group_ga868d33cdb2c1a17ad3d76efc6bbbd5e0}

\begin{DoxyCompactList}\small\item\em The constant defined as the highest value for P\-A\-T\-H\-\_\-\-M\-A\-X. \end{DoxyCompactList}\item 
\#define \hyperlink{group__Eina__File__Group_gab0472249546b833441c01dd278932bb0}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R\-\_\-\-L\-I\-S\-T\-\_\-\-C\-B}(function)~((\hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb})function)
\begin{DoxyCompactList}\small\item\em cast to an \hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\hypertarget{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{typedef struct \\*
\hyperlink{struct__Eina__File__Direct__Info}{\-\_\-\-Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info} \hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info}}\label{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}

\begin{DoxyCompactList}\small\item\em A typedef to \hyperlink{struct__Eina__File__Direct__Info}{\-\_\-\-Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info}. \end{DoxyCompactList}\item 
typedef struct \hyperlink{struct__Eina__Stat}{\-\_\-\-Eina\-\_\-\-Stat} \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\-\_\-\-Stat}
\begin{DoxyCompactList}\small\item\em A typedef to \hyperlink{struct__Eina__Stat}{\-\_\-\-Eina\-\_\-\-Stat}. \end{DoxyCompactList}\item 
\hypertarget{group__Eina__File__Group_ga207bb833f8b31e0229e9ed376bd394ad}{typedef struct \hyperlink{struct__Eina__File__Line}{\-\_\-\-Eina\-\_\-\-File\-\_\-\-Line} {\bfseries Eina\-\_\-\-File\-\_\-\-Line}}\label{group__Eina__File__Group_ga207bb833f8b31e0229e9ed376bd394ad}

\item 
typedef void($\ast$ \hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb} )(const char $\ast$name, const char $\ast$path, void $\ast$data)
\begin{DoxyCompactList}\small\item\em Type for a callback to be called when iterating over the files of a directory. \end{DoxyCompactList}\item 
\hypertarget{group__Eina__File__Group_ga7ca2ec0da8c964a9e1aeb94e53202271}{typedef struct \hyperlink{struct__Eina__File}{\-\_\-\-Eina\-\_\-\-File} {\bfseries Eina\-\_\-\-File}}\label{group__Eina__File__Group_ga7ca2ec0da8c964a9e1aeb94e53202271}

\item 
typedef \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool}($\ast$ \hyperlink{group__Eina__File__Group_gaa08a39ec2e9abfa703d15822a074f521}{Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Progress} )(void $\ast$data, unsigned long long done, unsigned long long total)
\begin{DoxyCompactList}\small\item\em used to report progress during \hyperlink{group__Eina__File__Group_ga90159e5c99bfaa036ca9f695f713ffa7}{eina\-\_\-file\-\_\-copy()}, where {\ttfamily done} is the bytes already copied and {\ttfamily size} is the total file size. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{group__Eina__File__Group_ga0b7b2db79f9a05b07273fb3428d46cd8}{Eina\-\_\-\-File\-\_\-\-Type} \{ \\*
\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aa271a0f3cd77f21c405a7e2636c4b064}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-U\-N\-K\-N\-O\-W\-N}, 
\\*
\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aeffdbcaeae950a9c786736495c9e6ae6}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-F\-I\-F\-O}, 
\\*
\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a3c0a5d44c060edb31c813aa04a025d2a}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-C\-H\-R}, 
\\*
\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a0b8844f30974a2fa27af9ba78bcfaa53}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R}, 
\\*
\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a4e8e6ab5ad07461bf2e97981d0c6f745}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-B\-L\-K}, 
\\*
\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8ae5c8a949a0de3a8fc46dcf02a57df381}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-G}, 
\\*
\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8abcfb23817258fffca146c9c43df45862}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-L\-N\-K}, 
\\*
\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a7b2507d72b963615be2bef550d98c188}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-O\-C\-K}, 
\\*
\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8af0980697fe8cbfc60a19f1f22b39634f}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-H\-T}
 \}
\begin{DoxyCompactList}\small\item\em file type in Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info. \end{DoxyCompactList}\item 
enum \hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\-\_\-\-File\-\_\-\-Populate} \{ \\*
\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aae9b963a3ffd3a5f885c86db4673eabd3}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-A\-N\-D\-O\-M}, 
\\*
\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabb92031c2d448a1659117121866229b2}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-E\-Q\-U\-E\-N\-T\-I\-A\-L}, 
\\*
\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aab049b3550f67cdd35ea15d5839800186}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-I\-L\-L\-N\-E\-E\-D}, 
\\*
\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa6c05201c80772a294c16800d7ca46a1d}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-P\-O\-P\-U\-L\-A\-T\-E}, 
\\*
\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabcd9246f7fbbbd2df5eeec7f3913558c}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-O\-N\-T\-N\-E\-E\-D}, 
\\*
\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa4786137330071feac6aafa0dcfc56519}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-M\-O\-V\-E}
 \}
\begin{DoxyCompactList}\small\item\em File access type used in Eina\-\_\-\-File\-\_\-\-Direct\-\_\-info. \end{DoxyCompactList}\item 
enum \hyperlink{group__Eina__File__Group_ga64acf75a3d09f9ef5ad04173a628cc32}{Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Flags} \{ \\*
{\bfseries E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-C\-O\-P\-Y\-\_\-\-D\-A\-T\-A} = 0, 
\\*
{\bfseries E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-C\-O\-P\-Y\-\_\-\-P\-E\-R\-M\-I\-S\-S\-I\-O\-N} = (1 $<$$<$ 0), 
\\*
{\bfseries E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-C\-O\-P\-Y\-\_\-\-X\-A\-T\-T\-R} = (1 $<$$<$ 1)
 \}
\begin{DoxyCompactList}\small\item\em what to copy from file. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} \hyperlink{group__Eina__File__Group_ga186dc8dd1a166a8972189f78bbee15ea}{eina\-\_\-file\-\_\-dir\-\_\-list} (const char $\ast$dir, \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} recursive, \hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb} cb, void $\ast$data) \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\-I\-N\-A\-\_\-\-A\-R\-G\-\_\-\-N\-O\-N\-N\-U\-L\-L}(1
\begin{DoxyCompactList}\small\item\em List all files on the directory calling the function for every file found. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} \hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Array__Group_ga2a57284ee83a7e767485b7ae2f5df86c}{Eina\-\_\-\-Array} $\ast$ \hyperlink{group__Eina__File__Group_ga8f157fabca35a981c0e253fdb3130385}{eina\-\_\-file\-\_\-split} (char $\ast$path) \hyperlink{group__Eina__Types__Group_ga4ba89e4b58eff707a6cf05ffe0cd4dea}{E\-I\-N\-A\-\_\-\-W\-A\-R\-N\-\_\-\-U\-N\-U\-S\-E\-D\-\_\-\-R\-E\-S\-U\-L\-T} \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\-I\-N\-A\-\_\-\-A\-R\-G\-\_\-\-N\-O\-N\-N\-U\-L\-L}(1) \hyperlink{group__Eina__Types__Group_gaabeaa41dd47f4b4d3991b10ba00bc59c}{E\-I\-N\-A\-\_\-\-M\-A\-L\-L\-O\-C}
\begin{DoxyCompactList}\small\item\em Split a path according to the delimiter of the filesystem. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\-\_\-\-Iterator} $\ast$ \hyperlink{group__Eina__File__Group_ga8c4fabb379b865a4ec134a5c4436be2a}{eina\-\_\-file\-\_\-ls} (const char $\ast$dir) \hyperlink{group__Eina__Types__Group_ga4ba89e4b58eff707a6cf05ffe0cd4dea}{E\-I\-N\-A\-\_\-\-W\-A\-R\-N\-\_\-\-U\-N\-U\-S\-E\-D\-\_\-\-R\-E\-S\-U\-L\-T} \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\-I\-N\-A\-\_\-\-A\-R\-G\-\_\-\-N\-O\-N\-N\-U\-L\-L}(1) \hyperlink{group__Eina__Types__Group_gaabeaa41dd47f4b4d3991b10ba00bc59c}{E\-I\-N\-A\-\_\-\-M\-A\-L\-L\-O\-C}
\begin{DoxyCompactList}\small\item\em Get an iterator to list the content of a directory. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\-\_\-\-Iterator} $\ast$ \hyperlink{group__Eina__File__Group_ga21d5e94767ae9932751649ce09a2f98f}{eina\-\_\-file\-\_\-stat\-\_\-ls} (const char $\ast$dir) \hyperlink{group__Eina__Types__Group_ga4ba89e4b58eff707a6cf05ffe0cd4dea}{E\-I\-N\-A\-\_\-\-W\-A\-R\-N\-\_\-\-U\-N\-U\-S\-E\-D\-\_\-\-R\-E\-S\-U\-L\-T} \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\-I\-N\-A\-\_\-\-A\-R\-G\-\_\-\-N\-O\-N\-N\-U\-L\-L}(1) \hyperlink{group__Eina__Types__Group_gaabeaa41dd47f4b4d3991b10ba00bc59c}{E\-I\-N\-A\-\_\-\-M\-A\-L\-L\-O\-C}
\begin{DoxyCompactList}\small\item\em Get an iterator to list the content of a directory, with direct information. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} int \hyperlink{group__Eina__File__Group_ga48cc0e04ab40c51160cda615c871e1f0}{eina\-\_\-file\-\_\-statat} (void $\ast$container, \hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info} $\ast$info, \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\-\_\-\-Stat} $\ast$buf) \hyperlink{group__Eina__Types__Group_ga4ba89e4b58eff707a6cf05ffe0cd4dea}{E\-I\-N\-A\-\_\-\-W\-A\-R\-N\-\_\-\-U\-N\-U\-S\-E\-D\-\_\-\-R\-E\-S\-U\-L\-T} \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\-I\-N\-A\-\_\-\-A\-R\-G\-\_\-\-N\-O\-N\-N\-U\-L\-L}(1
\begin{DoxyCompactList}\small\item\em Use information provided by Eina\-\_\-\-Iterator of eina\-\_\-file\-\_\-stat\-\_\-ls or eina\-\_\-file\-\_\-direct\-\_\-ls to call stat in the most efficient way on your system. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} int \hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} int \hyperlink{group__Eina__File__Group_gafe29831e515ea3e8431d3a6b06577a26}{eina\-\_\-file\-\_\-mkstemp} (const char $\ast$templatename, \hyperlink{group__Eina__Stringshare__Group_gae8d53f367d5da5acfd19af6c235831d5}{Eina\-\_\-\-Tmpstr} $\ast$$\ast$path)
\begin{DoxyCompactList}\small\item\em Generate and create a uniquely named temporary file from template. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} \hyperlink{group__Eina__File__Group_gae9dc80c6e1e50e38db8f019f3755fe0a}{eina\-\_\-file\-\_\-mkdtemp} (const char $\ast$templatename, \hyperlink{group__Eina__Stringshare__Group_gae8d53f367d5da5acfd19af6c235831d5}{Eina\-\_\-\-Tmpstr} $\ast$$\ast$path)
\begin{DoxyCompactList}\small\item\em Generate and create a uniquely named temporary directory from template. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\-\_\-\-Iterator} $\ast$ \hyperlink{group__Eina__File__Group_gab20cc163550854f917960f7971c45ca6}{eina\-\_\-file\-\_\-direct\-\_\-ls} (const char $\ast$dir) \hyperlink{group__Eina__Types__Group_ga4ba89e4b58eff707a6cf05ffe0cd4dea}{E\-I\-N\-A\-\_\-\-W\-A\-R\-N\-\_\-\-U\-N\-U\-S\-E\-D\-\_\-\-R\-E\-S\-U\-L\-T} \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\-I\-N\-A\-\_\-\-A\-R\-G\-\_\-\-N\-O\-N\-N\-U\-L\-L}(1) \hyperlink{group__Eina__Types__Group_gaabeaa41dd47f4b4d3991b10ba00bc59c}{E\-I\-N\-A\-\_\-\-M\-A\-L\-L\-O\-C}
\begin{DoxyCompactList}\small\item\em Get an iterator to list the content of a directory, with direct information. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} char $\ast$ \hyperlink{group__Eina__File__Group_ga7596f37d3a8a548f7223c29c55111c83}{eina\-\_\-file\-\_\-path\-\_\-sanitize} (const char $\ast$path)
\begin{DoxyCompactList}\small\item\em Sanitize file path. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} \hyperlink{group__Eina__File__Group_ga90159e5c99bfaa036ca9f695f713ffa7}{eina\-\_\-file\-\_\-copy} (const char $\ast$src, const char $\ast$dst, \hyperlink{group__Eina__File__Group_ga64acf75a3d09f9ef5ad04173a628cc32}{Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Flags} flags, \hyperlink{group__Eina__File__Group_gaa08a39ec2e9abfa703d15822a074f521}{Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Progress} cb, const void $\ast$cb\-\_\-data) \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\-I\-N\-A\-\_\-\-A\-R\-G\-\_\-\-N\-O\-N\-N\-U\-L\-L}(1
\begin{DoxyCompactList}\small\item\em Copy one file to another using the fastest possible way, report progress. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} \hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$ \hyperlink{group__Eina__File__Group_ga787592b7325fe0174c324d6a4dbd86da}{eina\-\_\-file\-\_\-open} (const char $\ast$name, \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} shared) \hyperlink{group__Eina__Types__Group_ga4ba89e4b58eff707a6cf05ffe0cd4dea}{E\-I\-N\-A\-\_\-\-W\-A\-R\-N\-\_\-\-U\-N\-U\-S\-E\-D\-\_\-\-R\-E\-S\-U\-L\-T} \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\-I\-N\-A\-\_\-\-A\-R\-G\-\_\-\-N\-O\-N\-N\-U\-L\-L}(1) \hyperlink{group__Eina__Types__Group_gaabeaa41dd47f4b4d3991b10ba00bc59c}{E\-I\-N\-A\-\_\-\-M\-A\-L\-L\-O\-C}
\begin{DoxyCompactList}\small\item\em Get a read-\/only handler to a file. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$ \hyperlink{group__Eina__File__Group_ga928baf177014f57317e89aab09e2ecaf}{eina\-\_\-file\-\_\-virtualize} (const char $\ast$virtual\-\_\-name, const void $\ast$data, unsigned long long length, \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} copy) \hyperlink{group__Eina__Types__Group_ga4ba89e4b58eff707a6cf05ffe0cd4dea}{E\-I\-N\-A\-\_\-\-W\-A\-R\-N\-\_\-\-U\-N\-U\-S\-E\-D\-\_\-\-R\-E\-S\-U\-L\-T} \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\-I\-N\-A\-\_\-\-A\-R\-G\-\_\-\-N\-O\-N\-N\-U\-L\-L}(1)
\begin{DoxyCompactList}\small\item\em Create a virtual file from a memory pointer. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} \hyperlink{group__Eina__File__Group_ga4b15c2ec6fcd45ce8ecd1f9a5c8aa4ee}{eina\-\_\-file\-\_\-virtual} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file) \hyperlink{group__Eina__Types__Group_ga4ba89e4b58eff707a6cf05ffe0cd4dea}{E\-I\-N\-A\-\_\-\-W\-A\-R\-N\-\_\-\-U\-N\-U\-S\-E\-D\-\_\-\-R\-E\-S\-U\-L\-T} \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\-I\-N\-A\-\_\-\-A\-R\-G\-\_\-\-N\-O\-N\-N\-U\-L\-L}(1)
\begin{DoxyCompactList}\small\item\em Tell if a file is a real file or only exist in memory. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} \hyperlink{group__Eina__File__Group_gac118af0ab5f22ec27954057223cb1ec1}{eina\-\_\-file\-\_\-refresh} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file)
\begin{DoxyCompactList}\small\item\em Refresh file information. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$ \hyperlink{group__Eina__File__Group_ga88bb67c6691a7f134f0414fd3c1df680}{eina\-\_\-file\-\_\-dup} (const \hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file)
\begin{DoxyCompactList}\small\item\em Dup a read-\/only handler of a previously open file. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} void \hyperlink{group__Eina__File__Group_ga715ced39d0806964baab10fe30e7bd37}{eina\-\_\-file\-\_\-close} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file)
\begin{DoxyCompactList}\small\item\em Unref file handler. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} size\-\_\-t \hyperlink{group__Eina__File__Group_ga4970b74fb3b9fe5a8e53bccbb3283711}{eina\-\_\-file\-\_\-size\-\_\-get} (const \hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file)
\begin{DoxyCompactList}\small\item\em Get file size at open time. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} time\-\_\-t \hyperlink{group__Eina__File__Group_ga24f150a021d8be9d9b99cb1a0d7d8fcd}{eina\-\_\-file\-\_\-mtime\-\_\-get} (const \hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file)
\begin{DoxyCompactList}\small\item\em Get the last modification time of an open file. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} const char $\ast$ \hyperlink{group__Eina__File__Group_ga1a53f3fdef3aa6fb265effe86c2f7a92}{eina\-\_\-file\-\_\-filename\-\_\-get} (const \hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file)
\begin{DoxyCompactList}\small\item\em Get the filename of an open file. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\-\_\-\-Iterator} $\ast$ \hyperlink{group__Eina__File__Group_gac352732de27c1d327dfc997b807e8704}{eina\-\_\-file\-\_\-xattr\-\_\-get} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file)
\begin{DoxyCompactList}\small\item\em Get the e\-Xtended attribute of an open file. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\-\_\-\-Iterator} $\ast$ \hyperlink{group__Eina__File__Group_ga734fe96e84273f8d649e3795c0dfd5d1}{eina\-\_\-file\-\_\-xattr\-\_\-value\-\_\-get} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file)
\begin{DoxyCompactList}\small\item\em Get the e\-Xtended attribute of an open file. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} void $\ast$ \hyperlink{group__Eina__File__Group_ga880f977c352766672d54991421835e7d}{eina\-\_\-file\-\_\-map\-\_\-all} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file, \hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\-\_\-\-File\-\_\-\-Populate} rule)
\begin{DoxyCompactList}\small\item\em Map all the file to a buffer. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} void $\ast$ \hyperlink{group__Eina__File__Group_ga8a9f5b50c7a12340421da059501660be}{eina\-\_\-file\-\_\-map\-\_\-new} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file, \hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\-\_\-\-File\-\_\-\-Populate} rule, unsigned long int offset, unsigned long int length)
\begin{DoxyCompactList}\small\item\em Map a part of the file. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} void \hyperlink{group__Eina__File__Group_ga60541f5c98e55f38d792d9f92d2d544f}{eina\-\_\-file\-\_\-map\-\_\-free} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file, void $\ast$map)
\begin{DoxyCompactList}\small\item\em Unref and unmap memory if possible. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} void \hyperlink{group__Eina__File__Group_ga61d232dbd4b05d5134ea93ef00884550}{eina\-\_\-file\-\_\-map\-\_\-populate} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file, \hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\-\_\-\-File\-\_\-\-Populate} rule, const void $\ast$map, unsigned long int offset, unsigned long int length)
\begin{DoxyCompactList}\small\item\em Ask the O\-S to populate or otherwise pages of memory in file mapping. \end{DoxyCompactList}\item 
\hypertarget{group__Eina__File__Group_gadc4d521fb8a14d51d85f2d11caaec54d}{\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\-\_\-\-Iterator} $\ast$ {\bfseries eina\-\_\-file\-\_\-map\-\_\-lines} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file)}\label{group__Eina__File__Group_gadc4d521fb8a14d51d85f2d11caaec54d}

\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\-\_\-\-Bool} \hyperlink{group__Eina__File__Group_ga123564d305287ee8c08b2c88c7d78a47}{eina\-\_\-file\-\_\-map\-\_\-faulted} (\hyperlink{struct__Eina__File}{Eina\-\_\-\-File} $\ast$file, void $\ast$map)
\begin{DoxyCompactList}\small\item\em Tell if their was an I\-O error during the life of a mmaped file. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions to handle files and directories. This functions make it easier to do a number o file and directory operations such as getting the list of files in a directory, spliting paths and finding out file size and type.

\begin{DoxyWarning}{Warning}
All functions in this group are {\bfseries blocking} which means they make take a long time to return, use them carefully.
\end{DoxyWarning}
See an example \hyperlink{eina_file_example_01_page}{here}. 

\subsection{Macro Definition Documentation}
\hypertarget{group__Eina__File__Group_gab0472249546b833441c01dd278932bb0}{\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R\-\_\-\-L\-I\-S\-T\-\_\-\-C\-B@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R\-\_\-\-L\-I\-S\-T\-\_\-\-C\-B}}
\index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R\-\_\-\-L\-I\-S\-T\-\_\-\-C\-B@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R\-\_\-\-L\-I\-S\-T\-\_\-\-C\-B}!File@{File}}
\subsubsection[{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R\-\_\-\-L\-I\-S\-T\-\_\-\-C\-B}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R\-\_\-\-L\-I\-S\-T\-\_\-\-C\-B(
\begin{DoxyParamCaption}
\item[{}]{function}
\end{DoxyParamCaption}
)~(({\bf Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb})function)}}\label{group__Eina__File__Group_gab0472249546b833441c01dd278932bb0}


cast to an \hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb}. 


\begin{DoxyParams}{Parameters}
{\em function} & The function to cast.\\
\hline
\end{DoxyParams}
This macro casts {\ttfamily function} to Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb. 

\subsection{Typedef Documentation}
\hypertarget{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{\index{File@{File}!Eina\-\_\-\-Stat@{Eina\-\_\-\-Stat}}
\index{Eina\-\_\-\-Stat@{Eina\-\_\-\-Stat}!File@{File}}
\subsubsection[{Eina\-\_\-\-Stat}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\-\_\-\-Stat}}}\label{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}


A typedef to \hyperlink{struct__Eina__Stat}{\-\_\-\-Eina\-\_\-\-Stat}. 

\begin{DoxySince}{Since}
1.\-2 
\end{DoxySince}
\hypertarget{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{\index{File@{File}!Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb@{Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb}}
\index{Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb@{Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb}!File@{File}}
\subsubsection[{Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb}]{\setlength{\rightskip}{0pt plus 5cm}Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb}}\label{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}


Type for a callback to be called when iterating over the files of a directory. 


\begin{DoxyParams}{Parameters}
{\em The} & file name E\-X\-C\-L\-U\-D\-I\-N\-G the path \\
\hline
{\em path} & The path passed to \hyperlink{group__Eina__File__Group_ga186dc8dd1a166a8972189f78bbee15ea}{eina\-\_\-file\-\_\-dir\-\_\-list()} \\
\hline
{\em data} & The data passed to \hyperlink{group__Eina__File__Group_ga186dc8dd1a166a8972189f78bbee15ea}{eina\-\_\-file\-\_\-dir\-\_\-list()} \\
\hline
\end{DoxyParams}
\hypertarget{group__Eina__File__Group_gaa08a39ec2e9abfa703d15822a074f521}{\index{File@{File}!Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Progress@{Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Progress}}
\index{Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Progress@{Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Progress}!File@{File}}
\subsubsection[{Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Progress}]{\setlength{\rightskip}{0pt plus 5cm}Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Progress}}\label{group__Eina__File__Group_gaa08a39ec2e9abfa703d15822a074f521}


used to report progress during \hyperlink{group__Eina__File__Group_ga90159e5c99bfaa036ca9f695f713ffa7}{eina\-\_\-file\-\_\-copy()}, where {\ttfamily done} is the bytes already copied and {\ttfamily size} is the total file size. 

If returns \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E}, it will stop the copy. 

\subsection{Enumeration Type Documentation}
\hypertarget{group__Eina__File__Group_ga0b7b2db79f9a05b07273fb3428d46cd8}{\index{File@{File}!Eina\-\_\-\-File\-\_\-\-Type@{Eina\-\_\-\-File\-\_\-\-Type}}
\index{Eina\-\_\-\-File\-\_\-\-Type@{Eina\-\_\-\-File\-\_\-\-Type}!File@{File}}
\subsubsection[{Eina\-\_\-\-File\-\_\-\-Type}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Eina\-\_\-\-File\-\_\-\-Type}}}\label{group__Eina__File__Group_ga0b7b2db79f9a05b07273fb3428d46cd8}


file type in Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info. 

\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-U\-N\-K\-N\-O\-W\-N@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-U\-N\-K\-N\-O\-W\-N}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-U\-N\-K\-N\-O\-W\-N@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-U\-N\-K\-N\-O\-W\-N}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aa271a0f3cd77f21c405a7e2636c4b064}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-U\-N\-K\-N\-O\-W\-N}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aa271a0f3cd77f21c405a7e2636c4b064}
}]Unknown file type. \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-F\-I\-F\-O@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-F\-I\-F\-O}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-F\-I\-F\-O@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-F\-I\-F\-O}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aeffdbcaeae950a9c786736495c9e6ae6}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-F\-I\-F\-O}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aeffdbcaeae950a9c786736495c9e6ae6}
}]Named pipe (F\-I\-F\-O) type (unused on Windows). \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-C\-H\-R@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-C\-H\-R}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-C\-H\-R@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-C\-H\-R}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a3c0a5d44c060edb31c813aa04a025d2a}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-C\-H\-R}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a3c0a5d44c060edb31c813aa04a025d2a}
}]Character device type (unused on Windows). \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a0b8844f30974a2fa27af9ba78bcfaa53}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-I\-R}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a0b8844f30974a2fa27af9ba78bcfaa53}
}]Directory type. \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-B\-L\-K@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-B\-L\-K}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-B\-L\-K@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-B\-L\-K}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a4e8e6ab5ad07461bf2e97981d0c6f745}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-B\-L\-K}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a4e8e6ab5ad07461bf2e97981d0c6f745}
}]Block device type (unused on Windows). \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-G@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-G}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-G@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-G}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8ae5c8a949a0de3a8fc46dcf02a57df381}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-G}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8ae5c8a949a0de3a8fc46dcf02a57df381}
}]Regular file type. \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-L\-N\-K@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-L\-N\-K}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-L\-N\-K@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-L\-N\-K}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8abcfb23817258fffca146c9c43df45862}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-L\-N\-K}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8abcfb23817258fffca146c9c43df45862}
}]Symbolic link type. \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-O\-C\-K@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-O\-C\-K}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-O\-C\-K@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-O\-C\-K}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a7b2507d72b963615be2bef550d98c188}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-O\-C\-K}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a7b2507d72b963615be2bef550d98c188}
}]U\-N\-I\-X domain socket type (unused on Windows). \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-H\-T@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-H\-T}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-H\-T@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-H\-T}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8af0980697fe8cbfc60a19f1f22b39634f}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-H\-T}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8af0980697fe8cbfc60a19f1f22b39634f}
}]Whiteout file type (unused on Windows). \end{description}
\end{Desc}
\hypertarget{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{\index{File@{File}!Eina\-\_\-\-File\-\_\-\-Populate@{Eina\-\_\-\-File\-\_\-\-Populate}}
\index{Eina\-\_\-\-File\-\_\-\-Populate@{Eina\-\_\-\-File\-\_\-\-Populate}!File@{File}}
\subsubsection[{Eina\-\_\-\-File\-\_\-\-Populate}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Eina\-\_\-\-File\-\_\-\-Populate}}}\label{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}


File access type used in Eina\-\_\-\-File\-\_\-\-Direct\-\_\-info. 

\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-A\-N\-D\-O\-M@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-A\-N\-D\-O\-M}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-A\-N\-D\-O\-M@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-A\-N\-D\-O\-M}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aae9b963a3ffd3a5f885c86db4673eabd3}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-A\-N\-D\-O\-M}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aae9b963a3ffd3a5f885c86db4673eabd3}
}]Advise random memory access to the mapped memory. \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-E\-Q\-U\-E\-N\-T\-I\-A\-L@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-E\-Q\-U\-E\-N\-T\-I\-A\-L}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-E\-Q\-U\-E\-N\-T\-I\-A\-L@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-E\-Q\-U\-E\-N\-T\-I\-A\-L}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabb92031c2d448a1659117121866229b2}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-S\-E\-Q\-U\-E\-N\-T\-I\-A\-L}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabb92031c2d448a1659117121866229b2}
}]Advise sequential memory access to the mapped memory. \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-I\-L\-L\-N\-E\-E\-D@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-I\-L\-L\-N\-E\-E\-D}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-I\-L\-L\-N\-E\-E\-D@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-I\-L\-L\-N\-E\-E\-D}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aab049b3550f67cdd35ea15d5839800186}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-W\-I\-L\-L\-N\-E\-E\-D}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aab049b3550f67cdd35ea15d5839800186}
}]Advise need for all the mapped memory. \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-P\-O\-P\-U\-L\-A\-T\-E@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-P\-O\-P\-U\-L\-A\-T\-E}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-P\-O\-P\-U\-L\-A\-T\-E@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-P\-O\-P\-U\-L\-A\-T\-E}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa6c05201c80772a294c16800d7ca46a1d}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-P\-O\-P\-U\-L\-A\-T\-E}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa6c05201c80772a294c16800d7ca46a1d}
}]Request all the mapped memory. \index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-O\-N\-T\-N\-E\-E\-D@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-O\-N\-T\-N\-E\-E\-D}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-O\-N\-T\-N\-E\-E\-D@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-O\-N\-T\-N\-E\-E\-D}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabcd9246f7fbbbd2df5eeec7f3913558c}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-D\-O\-N\-T\-N\-E\-E\-D}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabcd9246f7fbbbd2df5eeec7f3913558c}
}]Indicate that the memory is no longer needed. This may result in the memory being removed from any caches if applicable. \begin{DoxySince}{Since}
1.\-8 
\end{DoxySince}
\index{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-M\-O\-V\-E@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-M\-O\-V\-E}!File@{File}}\index{File@{File}!E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-M\-O\-V\-E@{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-M\-O\-V\-E}}\item[{\em 
\hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa4786137330071feac6aafa0dcfc56519}{E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-R\-E\-M\-O\-V\-E}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa4786137330071feac6aafa0dcfc56519}
}]This memory is to be released and any content will be lost. Subsequent accesses will succeed but return fresh memory as if accessed for the first time. This may not suceed if the filesystem does not support it. \begin{DoxySince}{Since}
1.\-8 
\end{DoxySince}
\end{description}
\end{Desc}


\subsection{Function Documentation}
\hypertarget{group__Eina__File__Group_ga186dc8dd1a166a8972189f78bbee15ea}{\index{File@{File}!eina\-\_\-file\-\_\-dir\-\_\-list@{eina\-\_\-file\-\_\-dir\-\_\-list}}
\index{eina\-\_\-file\-\_\-dir\-\_\-list@{eina\-\_\-file\-\_\-dir\-\_\-list}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-dir\-\_\-list}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Bool} eina\-\_\-file\-\_\-dir\-\_\-list (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{dir, }
\item[{{\bf Eina\-\_\-\-Bool}}]{recursive, }
\item[{{\bf Eina\-\_\-\-File\-\_\-\-Dir\-\_\-\-List\-\_\-\-Cb}}]{cb, }
\item[{void $\ast$}]{data}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga186dc8dd1a166a8972189f78bbee15ea}


List all files on the directory calling the function for every file found. 


\begin{DoxyParams}{Parameters}
{\em dir} & The directory name. \\
\hline
{\em recursive} & Iterate recursively in the directory. \\
\hline
{\em cb} & The callback to be called. \\
\hline
{\em data} & The data to pass to the callback. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\-I\-N\-A\-\_\-\-T\-R\-U\-E} on success, \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E} otherwise.
\end{DoxyReturn}
This function calls {\ttfamily cb} for each file that is in {\ttfamily dir}. To have {\ttfamily cb} called on files that are in subdirectories of {\ttfamily dir} {\ttfamily recursive} should be \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\-I\-N\-A\-\_\-\-T\-R\-U\-E}. In other words if {\ttfamily recursive} is \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E}, only direct children of {\ttfamily dir} will be operated on, if {\ttfamily recursive} is \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\-I\-N\-A\-\_\-\-T\-R\-U\-E} the entire tree of files that is below {\ttfamily dir} will be operated on.

If {\ttfamily cb} or {\ttfamily dir} are {\ttfamily N\-U\-L\-L}, or if {\ttfamily dir} is a string of size 0, or if {\ttfamily dir} can not be opened, this function returns \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E} immediately. otherwise, it returns \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\-I\-N\-A\-\_\-\-T\-R\-U\-E}. \begin{Desc}
\item[Examples\-: ]\par
\hyperlink{eina_file_01_8c-example}{eina\-\_\-file\-\_\-01.\-c}.\end{Desc}


Referenced by eina\-\_\-module\-\_\-arch\-\_\-list\-\_\-get(), and eina\-\_\-module\-\_\-list\-\_\-get().

\hypertarget{group__Eina__File__Group_ga8f157fabca35a981c0e253fdb3130385}{\index{File@{File}!eina\-\_\-file\-\_\-split@{eina\-\_\-file\-\_\-split}}
\index{eina\-\_\-file\-\_\-split@{eina\-\_\-file\-\_\-split}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-split}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Bool} {\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Array}$\ast$ eina\-\_\-file\-\_\-split (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{path}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga8f157fabca35a981c0e253fdb3130385}


Split a path according to the delimiter of the filesystem. 


\begin{DoxyParams}{Parameters}
{\em path} & The path to split. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An array of the parts of the path to split.
\end{DoxyReturn}
This function splits {\ttfamily path} according to the delimiter of the used filesystem. If {\ttfamily path} is {\ttfamily N\-U\-L\-L} or if the array can not be created, {\ttfamily N\-U\-L\-L} is returned, otherwise, an array with each part of {\ttfamily path} is returned. 

References eina\-\_\-array\-\_\-new().

\hypertarget{group__Eina__File__Group_ga8c4fabb379b865a4ec134a5c4436be2a}{\index{File@{File}!eina\-\_\-file\-\_\-ls@{eina\-\_\-file\-\_\-ls}}
\index{eina\-\_\-file\-\_\-ls@{eina\-\_\-file\-\_\-ls}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-ls}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Iterator}$\ast$ eina\-\_\-file\-\_\-ls (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{dir}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga8c4fabb379b865a4ec134a5c4436be2a}


Get an iterator to list the content of a directory. 


\begin{DoxyParams}{Parameters}
{\em dir} & The name of the directory to list \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Return an Eina\-\_\-\-Iterator that will walk over the files and directories in {\ttfamily dir}. On failure it will return {\ttfamily N\-U\-L\-L}.
\end{DoxyReturn}
Returns an iterator for shared strings, the name of each file in {\ttfamily dir} will only be fetched when advancing the iterator, which means there is very little cost associated with creating the list and stopping halfway through it.

\begin{DoxyWarning}{Warning}
The iterator will hand the user a stringshared value with the full path. The user must free the string using \hyperlink{group__Eina__Stringshare__Group_ga4453d2aff2b325c7b45048f30df9b1f5}{eina\-\_\-stringshare\-\_\-del()} on it.
\end{DoxyWarning}
\begin{DoxyNote}{Note}
The container for the iterator is of type D\-I\-R$\ast$. 

The iterator will walk over '.' and '..' without returning them.
\end{DoxyNote}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Eina__File__Group_gab20cc163550854f917960f7971c45ca6}{eina\-\_\-file\-\_\-direct\-\_\-ls()} 
\end{DoxySeeAlso}


References closedir(), E\-I\-N\-A\-\_\-\-M\-A\-G\-I\-C\-\_\-\-S\-E\-T, E\-I\-N\-A\-\_\-\-U\-N\-L\-I\-K\-E\-L\-Y, F\-U\-N\-C\-\_\-\-I\-T\-E\-R\-A\-T\-O\-R\-\_\-\-F\-R\-E\-E, F\-U\-N\-C\-\_\-\-I\-T\-E\-R\-A\-T\-O\-R\-\_\-\-G\-E\-T\-\_\-\-C\-O\-N\-T\-A\-I\-N\-E\-R, F\-U\-N\-C\-\_\-\-I\-T\-E\-R\-A\-T\-O\-R\-\_\-\-N\-E\-X\-T, and opendir().

\hypertarget{group__Eina__File__Group_ga21d5e94767ae9932751649ce09a2f98f}{\index{File@{File}!eina\-\_\-file\-\_\-stat\-\_\-ls@{eina\-\_\-file\-\_\-stat\-\_\-ls}}
\index{eina\-\_\-file\-\_\-stat\-\_\-ls@{eina\-\_\-file\-\_\-stat\-\_\-ls}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-stat\-\_\-ls}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Iterator}$\ast$ eina\-\_\-file\-\_\-stat\-\_\-ls (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{dir}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga21d5e94767ae9932751649ce09a2f98f}


Get an iterator to list the content of a directory, with direct information. 


\begin{DoxyParams}{Parameters}
{\em dir} & The name of the directory to list\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Return an Eina\-\_\-\-Iterator that will walk over the files and directory in the pointed directory. On failure it will return N\-U\-L\-L.
\end{DoxyReturn}
Returns an iterator for Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info, the name of each file in {\ttfamily dir} will only be fetched when advancing the iterator, which means there is cost associated with creating the list and stopping halfway through it.

\begin{DoxyWarning}{Warning}
The Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info returned by the iterator {\bfseries must not} be modified in any way. 

When the iterator is advanced or deleted the Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info returned is no longer valid.
\end{DoxyWarning}
\begin{DoxyNote}{Note}
The container for the iterator is of type D\-I\-R$\ast$. 

The iterator will walk over '.' and '..' without returning them. 

The difference between this function and \hyperlink{group__Eina__File__Group_gab20cc163550854f917960f7971c45ca6}{eina\-\_\-file\-\_\-direct\-\_\-ls()} is that it guarantees the file type information will be correct incurring a possible performance penalty.
\end{DoxyNote}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Eina__File__Group_gab20cc163550854f917960f7971c45ca6}{eina\-\_\-file\-\_\-direct\-\_\-ls()} 
\end{DoxySeeAlso}


References closedir(), eina\-\_\-file\-\_\-direct\-\_\-ls(), E\-I\-N\-A\-\_\-\-M\-A\-G\-I\-C\-\_\-\-S\-E\-T, E\-I\-N\-A\-\_\-\-P\-A\-T\-H\-\_\-\-M\-A\-X, E\-I\-N\-A\-\_\-\-U\-N\-L\-I\-K\-E\-L\-Y, F\-U\-N\-C\-\_\-\-I\-T\-E\-R\-A\-T\-O\-R\-\_\-\-F\-R\-E\-E, F\-U\-N\-C\-\_\-\-I\-T\-E\-R\-A\-T\-O\-R\-\_\-\-G\-E\-T\-\_\-\-C\-O\-N\-T\-A\-I\-N\-E\-R, F\-U\-N\-C\-\_\-\-I\-T\-E\-R\-A\-T\-O\-R\-\_\-\-N\-E\-X\-T, and opendir().

\hypertarget{group__Eina__File__Group_ga48cc0e04ab40c51160cda615c871e1f0}{\index{File@{File}!eina\-\_\-file\-\_\-statat@{eina\-\_\-file\-\_\-statat}}
\index{eina\-\_\-file\-\_\-statat@{eina\-\_\-file\-\_\-statat}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-statat}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} int eina\-\_\-file\-\_\-statat (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{container, }
\item[{{\bf Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info} $\ast$}]{info, }
\item[{{\bf Eina\-\_\-\-Stat} $\ast$}]{buf}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga48cc0e04ab40c51160cda615c871e1f0}


Use information provided by Eina\-\_\-\-Iterator of eina\-\_\-file\-\_\-stat\-\_\-ls or eina\-\_\-file\-\_\-direct\-\_\-ls to call stat in the most efficient way on your system. 


\begin{DoxyParams}{Parameters}
{\em container} & The container returned by the Eina\-\_\-\-Iterator using \hyperlink{group__Eina__Iterator__Group_ga5583ab703b156f74f0c2a74875c95cc2}{eina\-\_\-iterator\-\_\-container\-\_\-get()}. \\
\hline
{\em info} & The content of the current Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info provided by the Eina\-\_\-\-Iterator \\
\hline
{\em buf} & Where to put the result of the stat \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
On success {\ttfamily 0} is returned, On error {\ttfamily -\/1} is returned and errno is set appropriately.
\end{DoxyReturn}
This function calls fstatat or stat depending on what your system supports. This makes it efficient and simple to use on your side without complex detection already done inside Eina on what the system can do.

\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Eina__File__Group_gab20cc163550854f917960f7971c45ca6}{eina\-\_\-file\-\_\-direct\-\_\-ls()} 

\hyperlink{group__Eina__File__Group_ga21d5e94767ae9932751649ce09a2f98f}{eina\-\_\-file\-\_\-stat\-\_\-ls()} 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\-2 
\end{DoxySince}
\hypertarget{group__Eina__File__Group_gafe29831e515ea3e8431d3a6b06577a26}{\index{File@{File}!eina\-\_\-file\-\_\-mkstemp@{eina\-\_\-file\-\_\-mkstemp}}
\index{eina\-\_\-file\-\_\-mkstemp@{eina\-\_\-file\-\_\-mkstemp}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-mkstemp}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} int {\bf E\-A\-P\-I} int eina\-\_\-file\-\_\-mkstemp (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{templatename, }
\item[{{\bf Eina\-\_\-\-Tmpstr} $\ast$$\ast$}]{path}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_gafe29831e515ea3e8431d3a6b06577a26}


Generate and create a uniquely named temporary file from template. 

Generated file is opened with the open(2) O\-\_\-\-E\-X\-C\-L flag.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em templatename} & is a string. The last six characters of templatename must be X\-X\-X\-X\-X\-X. \\
\hline
\mbox{\tt out}  & {\em path} & Where to put the name of the created file. If not N\-U\-L\-L should be released by eina\-\_\-tmpstr\-\_\-del. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
On success {\ttfamily file} descriptor of the temporary file is returned, On error {\ttfamily -\/1} is returned, in which case errno is set appropriately.
\end{DoxyReturn}
This function calls mkstemp, generates a unique temporary filename from template, creates and opens the file, and returns an open file descriptor for the file.

\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Eina__File__Group_gae9dc80c6e1e50e38db8f019f3755fe0a}{eina\-\_\-file\-\_\-mkdtemp()} 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\-8 
\end{DoxySince}


References eina\-\_\-tmpstr\-\_\-add(), evil\-\_\-tmpdir\-\_\-get(), and mkstemp().

\hypertarget{group__Eina__File__Group_gae9dc80c6e1e50e38db8f019f3755fe0a}{\index{File@{File}!eina\-\_\-file\-\_\-mkdtemp@{eina\-\_\-file\-\_\-mkdtemp}}
\index{eina\-\_\-file\-\_\-mkdtemp@{eina\-\_\-file\-\_\-mkdtemp}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-mkdtemp}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Bool} eina\-\_\-file\-\_\-mkdtemp (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{templatename, }
\item[{{\bf Eina\-\_\-\-Tmpstr} $\ast$$\ast$}]{path}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_gae9dc80c6e1e50e38db8f019f3755fe0a}


Generate and create a uniquely named temporary directory from template. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em templatename} & is a string. The last six characters of templatename must be X\-X\-X\-X\-X\-X. \\
\hline
\mbox{\tt out}  & {\em path} & Where to put the name of the created directory. If not N\-U\-L\-L should be released by eina\-\_\-tmpstr\-\_\-del. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
On success {\ttfamily E\-I\-N\-A\-\_\-\-T\-R\-U\-E} is returned, On error {\ttfamily E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E} is returned, in which case errno is set appropriately.
\end{DoxyReturn}
This function calls mkdtemp. The directory is then created with permissions 0700.

\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Eina__File__Group_gafe29831e515ea3e8431d3a6b06577a26}{eina\-\_\-file\-\_\-mkstemp()} 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\-8 
\end{DoxySince}


References E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E, eina\-\_\-tmpstr\-\_\-add(), E\-I\-N\-A\-\_\-\-T\-R\-U\-E, evil\-\_\-tmpdir\-\_\-get(), and mkdtemp().

\hypertarget{group__Eina__File__Group_gab20cc163550854f917960f7971c45ca6}{\index{File@{File}!eina\-\_\-file\-\_\-direct\-\_\-ls@{eina\-\_\-file\-\_\-direct\-\_\-ls}}
\index{eina\-\_\-file\-\_\-direct\-\_\-ls@{eina\-\_\-file\-\_\-direct\-\_\-ls}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-direct\-\_\-ls}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Iterator}$\ast$ eina\-\_\-file\-\_\-direct\-\_\-ls (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{dir}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_gab20cc163550854f917960f7971c45ca6}


Get an iterator to list the content of a directory, with direct information. 


\begin{DoxyParams}{Parameters}
{\em dir} & The name of the directory to list\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Return an Eina\-\_\-\-Iterator that will walk over the files and directory in the pointed directory. On failure it will return {\ttfamily N\-U\-L\-L}.
\end{DoxyReturn}
Returns an iterator for Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info, the name of each file in {\ttfamily dir} will only be fetched when advancing the iterator, which means there is cost associated with creating the list and stopping halfway through it.

\begin{DoxyWarning}{Warning}
If readdir\-\_\-r doesn't contain file type information file type will be D\-T\-\_\-\-U\-N\-K\-N\-O\-W. 

The Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info returned by the iterator {\bfseries must not} be modified in any way. 

When the iterator is advanced or deleted the Eina\-\_\-\-File\-\_\-\-Direct\-\_\-\-Info returned is no longer valid.
\end{DoxyWarning}
\begin{DoxyNote}{Note}
The container for the iterator is of type D\-I\-R$\ast$. 

The iterator will walk over '.' and '..' without returning them. 

The difference between this function and \hyperlink{group__Eina__File__Group_ga21d5e94767ae9932751649ce09a2f98f}{eina\-\_\-file\-\_\-stat\-\_\-ls()} is that it may not get the file type information however it is likely to be faster.
\end{DoxyNote}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Eina__File__Group_ga8c4fabb379b865a4ec134a5c4436be2a}{eina\-\_\-file\-\_\-ls()} 
\end{DoxySeeAlso}


References closedir(), E\-I\-N\-A\-\_\-\-M\-A\-G\-I\-C\-\_\-\-S\-E\-T, E\-I\-N\-A\-\_\-\-P\-A\-T\-H\-\_\-\-M\-A\-X, E\-I\-N\-A\-\_\-\-U\-N\-L\-I\-K\-E\-L\-Y, F\-U\-N\-C\-\_\-\-I\-T\-E\-R\-A\-T\-O\-R\-\_\-\-F\-R\-E\-E, F\-U\-N\-C\-\_\-\-I\-T\-E\-R\-A\-T\-O\-R\-\_\-\-G\-E\-T\-\_\-\-C\-O\-N\-T\-A\-I\-N\-E\-R, F\-U\-N\-C\-\_\-\-I\-T\-E\-R\-A\-T\-O\-R\-\_\-\-N\-E\-X\-T, and opendir().



Referenced by ecore\-\_\-file\-\_\-dir\-\_\-is\-\_\-empty(), ecore\-\_\-file\-\_\-ls(), ecore\-\_\-file\-\_\-recursive\-\_\-rm(), edje\-\_\-available\-\_\-modules\-\_\-get(), and eina\-\_\-file\-\_\-stat\-\_\-ls().

\hypertarget{group__Eina__File__Group_ga7596f37d3a8a548f7223c29c55111c83}{\index{File@{File}!eina\-\_\-file\-\_\-path\-\_\-sanitize@{eina\-\_\-file\-\_\-path\-\_\-sanitize}}
\index{eina\-\_\-file\-\_\-path\-\_\-sanitize@{eina\-\_\-file\-\_\-path\-\_\-sanitize}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-path\-\_\-sanitize}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} char$\ast$ eina\-\_\-file\-\_\-path\-\_\-sanitize (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{path}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga7596f37d3a8a548f7223c29c55111c83}


Sanitize file path. 


\begin{DoxyParams}{Parameters}
{\em path} & The path to sanitize\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an allocated string with the sanitized path.
\end{DoxyReturn}
This function take care of adding the current working directory if it's a relative path and also remove all '..' and '//' reference in the original path.

\begin{DoxySince}{Since}
1.\-1 
\end{DoxySince}


References eina\-\_\-tmpstr\-\_\-strlen().



Referenced by efreet\-\_\-desktop\-\_\-new(), efreet\-\_\-desktop\-\_\-uncached\-\_\-new(), efreet\-\_\-icon\-\_\-deprecated\-\_\-user\-\_\-dir\-\_\-get(), efreet\-\_\-icon\-\_\-user\-\_\-dir\-\_\-get(), and eina\-\_\-file\-\_\-open().

\hypertarget{group__Eina__File__Group_ga90159e5c99bfaa036ca9f695f713ffa7}{\index{File@{File}!eina\-\_\-file\-\_\-copy@{eina\-\_\-file\-\_\-copy}}
\index{eina\-\_\-file\-\_\-copy@{eina\-\_\-file\-\_\-copy}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-copy}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Bool} eina\-\_\-file\-\_\-copy (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{src, }
\item[{const char $\ast$}]{dst, }
\item[{{\bf Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Flags}}]{flags, }
\item[{{\bf Eina\-\_\-\-File\-\_\-\-Copy\-\_\-\-Progress}}]{cb, }
\item[{const void $\ast$}]{cb\-\_\-data}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga90159e5c99bfaa036ca9f695f713ffa7}


Copy one file to another using the fastest possible way, report progress. 

This function will try splice if it is available. It will block until the whole file is copied or it fails.

During the progress it may call back {\itshape cb} with the progress summary.


\begin{DoxyParams}{Parameters}
{\em src} & the source file. \\
\hline
{\em dst} & the destination file. \\
\hline
{\em flags} & controls what is copied (data is always copied). \\
\hline
{\em cb} & if provided will be called with file copy progress information. \\
\hline
{\em cb\-\_\-data} & context data to provide to {\itshape cb} during copy. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\-I\-N\-A\-\_\-\-T\-R\-U\-E} on success, \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E} otherwise (and {\itshape dst} will be deleted) 
\end{DoxyReturn}
\hypertarget{group__Eina__File__Group_ga787592b7325fe0174c324d6a4dbd86da}{\index{File@{File}!eina\-\_\-file\-\_\-open@{eina\-\_\-file\-\_\-open}}
\index{eina\-\_\-file\-\_\-open@{eina\-\_\-file\-\_\-open}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-open}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Bool} {\bf E\-A\-P\-I} {\bf Eina\-\_\-\-File}$\ast$ eina\-\_\-file\-\_\-open (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name, }
\item[{{\bf Eina\-\_\-\-Bool}}]{shared}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga787592b7325fe0174c324d6a4dbd86da}


Get a read-\/only handler to a file. 


\begin{DoxyParams}{Parameters}
{\em name} & Filename to open \\
\hline
{\em shared} & Requested a shm \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Eina\-\_\-\-File handle to the file
\end{DoxyReturn}
Opens a file in read-\/only mode. {\ttfamily name} should be an absolute path. An Eina\-\_\-\-File handle can be shared among multiple instances if {\ttfamily shared} is \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\-I\-N\-A\-\_\-\-T\-R\-U\-E}.

\begin{DoxySince}{Since}
1.\-1 
\end{DoxySince}


References eina\-\_\-file\-\_\-path\-\_\-sanitize(), E\-I\-N\-A\-\_\-\-F\-R\-E\-E\-\_\-\-C\-B, eina\-\_\-hash\-\_\-del(), eina\-\_\-hash\-\_\-direct\-\_\-add(), eina\-\_\-hash\-\_\-find(), eina\-\_\-hash\-\_\-new(), eina\-\_\-hash\-\_\-pointer\-\_\-new(), E\-I\-N\-A\-\_\-\-K\-E\-Y\-\_\-\-C\-M\-P, E\-I\-N\-A\-\_\-\-K\-E\-Y\-\_\-\-H\-A\-S\-H, E\-I\-N\-A\-\_\-\-K\-E\-Y\-\_\-\-L\-E\-N\-G\-T\-H, E\-I\-N\-A\-\_\-\-M\-A\-G\-I\-C\-\_\-\-S\-E\-T, E\-I\-N\-A\-\_\-\-T\-R\-U\-E, and fcntl().



Referenced by edje\-\_\-file\-\_\-collection\-\_\-list(), edje\-\_\-file\-\_\-data\-\_\-get(), edje\-\_\-file\-\_\-group\-\_\-exists(), eet\-\_\-identity\-\_\-open(), and eet\-\_\-open().

\hypertarget{group__Eina__File__Group_ga928baf177014f57317e89aab09e2ecaf}{\index{File@{File}!eina\-\_\-file\-\_\-virtualize@{eina\-\_\-file\-\_\-virtualize}}
\index{eina\-\_\-file\-\_\-virtualize@{eina\-\_\-file\-\_\-virtualize}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-virtualize}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-File}$\ast$ eina\-\_\-file\-\_\-virtualize (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{virtual\-\_\-name, }
\item[{const void $\ast$}]{data, }
\item[{unsigned long long}]{length, }
\item[{{\bf Eina\-\_\-\-Bool}}]{copy}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga928baf177014f57317e89aab09e2ecaf}


Create a virtual file from a memory pointer. 


\begin{DoxyParams}{Parameters}
{\em virtual\-\_\-name} & A virtual name for Eina\-\_\-\-File, if \#\-N\-U\-L\-L, a generated one will be given \\
\hline
{\em data} & The memory pointer to take data from \\
\hline
{\em length} & The length of the data in memory \\
\hline
{\em copy} & \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\-I\-N\-A\-\_\-\-T\-R\-U\-E} if the data must be copied \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Eina\-\_\-\-File handle to the file
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\-8 
\end{DoxySince}


References E\-I\-N\-A\-\_\-\-F\-R\-E\-E\-\_\-\-C\-B, eina\-\_\-hash\-\_\-new(), eina\-\_\-hash\-\_\-pointer\-\_\-new(), E\-I\-N\-A\-\_\-\-K\-E\-Y\-\_\-\-C\-M\-P, E\-I\-N\-A\-\_\-\-K\-E\-Y\-\_\-\-H\-A\-S\-H, E\-I\-N\-A\-\_\-\-K\-E\-Y\-\_\-\-L\-E\-N\-G\-T\-H, and E\-I\-N\-A\-\_\-\-T\-R\-U\-E.



Referenced by evas\-\_\-object\-\_\-image\-\_\-memfile\-\_\-set().

\hypertarget{group__Eina__File__Group_ga4b15c2ec6fcd45ce8ecd1f9a5c8aa4ee}{\index{File@{File}!eina\-\_\-file\-\_\-virtual@{eina\-\_\-file\-\_\-virtual}}
\index{eina\-\_\-file\-\_\-virtual@{eina\-\_\-file\-\_\-virtual}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-virtual}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Bool} eina\-\_\-file\-\_\-virtual (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-File} $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga4b15c2ec6fcd45ce8ecd1f9a5c8aa4ee}


Tell if a file is a real file or only exist in memory. 


\begin{DoxyParams}{Parameters}
{\em file} & The file to test \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\-I\-N\-A\-\_\-\-T\-R\-U\-E} if the file is a virtual file
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\-8 
\end{DoxySince}


References E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E.

\hypertarget{group__Eina__File__Group_gac118af0ab5f22ec27954057223cb1ec1}{\index{File@{File}!eina\-\_\-file\-\_\-refresh@{eina\-\_\-file\-\_\-refresh}}
\index{eina\-\_\-file\-\_\-refresh@{eina\-\_\-file\-\_\-refresh}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-refresh}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Bool} eina\-\_\-file\-\_\-refresh (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-File} $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_gac118af0ab5f22ec27954057223cb1ec1}


Refresh file information. 


\begin{DoxyParams}{Parameters}
{\em file} & The file to refresh \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\-I\-N\-A\-\_\-\-T\-R\-U\-E} if the file has changed
\end{DoxyReturn}
All current map continue to exist. You need to manually delete and recreate them to have the new correct mapping.

\begin{DoxySince}{Since}
1.\-8 
\end{DoxySince}


References E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E, and E\-I\-N\-A\-\_\-\-T\-R\-U\-E.

\hypertarget{group__Eina__File__Group_ga88bb67c6691a7f134f0414fd3c1df680}{\index{File@{File}!eina\-\_\-file\-\_\-dup@{eina\-\_\-file\-\_\-dup}}
\index{eina\-\_\-file\-\_\-dup@{eina\-\_\-file\-\_\-dup}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-dup}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-File}$\ast$ eina\-\_\-file\-\_\-dup (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\-\_\-\-File} $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga88bb67c6691a7f134f0414fd3c1df680}


Dup a read-\/only handler of a previously open file. 


\begin{DoxyParams}{Parameters}
{\em file} & To duplicate a reference to \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Eina\-\_\-\-File handle to the duplicated file
\end{DoxyReturn}
Opens a file in read-\/only mode.

\begin{DoxySince}{Since}
1.\-8 
\end{DoxySince}


Referenced by eet\-\_\-mmap().

\hypertarget{group__Eina__File__Group_ga715ced39d0806964baab10fe30e7bd37}{\index{File@{File}!eina\-\_\-file\-\_\-close@{eina\-\_\-file\-\_\-close}}
\index{eina\-\_\-file\-\_\-close@{eina\-\_\-file\-\_\-close}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-close}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} void eina\-\_\-file\-\_\-close (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-File} $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga715ced39d0806964baab10fe30e7bd37}


Unref file handler. 


\begin{DoxyParams}{Parameters}
{\em file} & File handler to unref.\\
\hline
\end{DoxyParams}
Decrement file's refcount and if it reaches zero close it.

\begin{DoxySince}{Since}
1.\-1 
\end{DoxySince}


References E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E, eina\-\_\-hash\-\_\-del\-\_\-by\-\_\-key\-\_\-hash(), eina\-\_\-hash\-\_\-find\-\_\-by\-\_\-hash(), and E\-I\-N\-A\-\_\-\-T\-R\-U\-E.



Referenced by edje\-\_\-file\-\_\-collection\-\_\-list(), edje\-\_\-file\-\_\-data\-\_\-get(), edje\-\_\-file\-\_\-group\-\_\-exists(), eet\-\_\-identity\-\_\-open(), eet\-\_\-open(), and evas\-\_\-object\-\_\-image\-\_\-memfile\-\_\-set().

\hypertarget{group__Eina__File__Group_ga4970b74fb3b9fe5a8e53bccbb3283711}{\index{File@{File}!eina\-\_\-file\-\_\-size\-\_\-get@{eina\-\_\-file\-\_\-size\-\_\-get}}
\index{eina\-\_\-file\-\_\-size\-\_\-get@{eina\-\_\-file\-\_\-size\-\_\-get}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-size\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} size\-\_\-t eina\-\_\-file\-\_\-size\-\_\-get (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\-\_\-\-File} $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga4970b74fb3b9fe5a8e53bccbb3283711}


Get file size at open time. 


\begin{DoxyParams}{Parameters}
{\em file} & The file handler to request the size from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The length of the file.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\-1 
\end{DoxySince}


Referenced by eet\-\_\-identity\-\_\-open(), eet\-\_\-mmap(), eet\-\_\-open(), and eio\-\_\-file\-\_\-map\-\_\-all().

\hypertarget{group__Eina__File__Group_ga24f150a021d8be9d9b99cb1a0d7d8fcd}{\index{File@{File}!eina\-\_\-file\-\_\-mtime\-\_\-get@{eina\-\_\-file\-\_\-mtime\-\_\-get}}
\index{eina\-\_\-file\-\_\-mtime\-\_\-get@{eina\-\_\-file\-\_\-mtime\-\_\-get}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-mtime\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} time\-\_\-t eina\-\_\-file\-\_\-mtime\-\_\-get (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\-\_\-\-File} $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga24f150a021d8be9d9b99cb1a0d7d8fcd}


Get the last modification time of an open file. 


\begin{DoxyParams}{Parameters}
{\em file} & The file handler to request the modification time from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The last modification time.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\-1 
\end{DoxySince}
\hypertarget{group__Eina__File__Group_ga1a53f3fdef3aa6fb265effe86c2f7a92}{\index{File@{File}!eina\-\_\-file\-\_\-filename\-\_\-get@{eina\-\_\-file\-\_\-filename\-\_\-get}}
\index{eina\-\_\-file\-\_\-filename\-\_\-get@{eina\-\_\-file\-\_\-filename\-\_\-get}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-filename\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} const char$\ast$ eina\-\_\-file\-\_\-filename\-\_\-get (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\-\_\-\-File} $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga1a53f3fdef3aa6fb265effe86c2f7a92}


Get the filename of an open file. 


\begin{DoxyParams}{Parameters}
{\em file} & The file handler to request the name from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Stringshared filename of the file.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\-1 
\end{DoxySince}


Referenced by edje\-\_\-mmap\-\_\-group\-\_\-exists(), and eet\-\_\-mmap().

\hypertarget{group__Eina__File__Group_gac352732de27c1d327dfc997b807e8704}{\index{File@{File}!eina\-\_\-file\-\_\-xattr\-\_\-get@{eina\-\_\-file\-\_\-xattr\-\_\-get}}
\index{eina\-\_\-file\-\_\-xattr\-\_\-get@{eina\-\_\-file\-\_\-xattr\-\_\-get}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-xattr\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Iterator}$\ast$ eina\-\_\-file\-\_\-xattr\-\_\-get (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-File} $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_gac352732de27c1d327dfc997b807e8704}


Get the e\-Xtended attribute of an open file. 


\begin{DoxyParams}{Parameters}
{\em file} & The file handler to request the e\-Xtended attribute from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an iterator.
\end{DoxyReturn}
The iterator will list all e\-Xtended attribute name without allocating them, so you need to copy them yourself if needed.

\begin{DoxySince}{Since}
1.\-2 
\end{DoxySince}


References eina\-\_\-xattr\-\_\-fd\-\_\-ls().

\hypertarget{group__Eina__File__Group_ga734fe96e84273f8d649e3795c0dfd5d1}{\index{File@{File}!eina\-\_\-file\-\_\-xattr\-\_\-value\-\_\-get@{eina\-\_\-file\-\_\-xattr\-\_\-value\-\_\-get}}
\index{eina\-\_\-file\-\_\-xattr\-\_\-value\-\_\-get@{eina\-\_\-file\-\_\-xattr\-\_\-value\-\_\-get}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-xattr\-\_\-value\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Iterator}$\ast$ eina\-\_\-file\-\_\-xattr\-\_\-value\-\_\-get (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-File} $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga734fe96e84273f8d649e3795c0dfd5d1}


Get the e\-Xtended attribute of an open file. 


\begin{DoxyParams}{Parameters}
{\em file} & The file handler to request the e\-Xtended attribute from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an iterator.
\end{DoxyReturn}
The iterator will list all e\-Xtended attribute without allocating them, so you need to copy them yourself if needed. It is returning Eina\-\_\-\-Xattr structure.

\begin{DoxySince}{Since}
1.\-2 
\end{DoxySince}


References eina\-\_\-xattr\-\_\-value\-\_\-fd\-\_\-ls().

\hypertarget{group__Eina__File__Group_ga880f977c352766672d54991421835e7d}{\index{File@{File}!eina\-\_\-file\-\_\-map\-\_\-all@{eina\-\_\-file\-\_\-map\-\_\-all}}
\index{eina\-\_\-file\-\_\-map\-\_\-all@{eina\-\_\-file\-\_\-map\-\_\-all}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-map\-\_\-all}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} void$\ast$ eina\-\_\-file\-\_\-map\-\_\-all (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-File} $\ast$}]{file, }
\item[{{\bf Eina\-\_\-\-File\-\_\-\-Populate}}]{rule}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga880f977c352766672d54991421835e7d}


Map all the file to a buffer. 


\begin{DoxyParams}{Parameters}
{\em file} & The file handler to map in memory \\
\hline
{\em rule} & The rule to apply to the mapped memory \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to a buffer that map all the file content. {\ttfamily N\-U\-L\-L} if it fail.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\-1 
\end{DoxySince}


References E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E, E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-P\-O\-P\-U\-L\-A\-T\-E, eina\-\_\-mmap\-\_\-safety\-\_\-enabled\-\_\-set(), E\-I\-N\-A\-\_\-\-T\-R\-U\-E, and mmap().



Referenced by eet\-\_\-identity\-\_\-open(), eet\-\_\-mmap(), eet\-\_\-open(), and eina\-\_\-file\-\_\-map\-\_\-new().

\hypertarget{group__Eina__File__Group_ga8a9f5b50c7a12340421da059501660be}{\index{File@{File}!eina\-\_\-file\-\_\-map\-\_\-new@{eina\-\_\-file\-\_\-map\-\_\-new}}
\index{eina\-\_\-file\-\_\-map\-\_\-new@{eina\-\_\-file\-\_\-map\-\_\-new}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-map\-\_\-new}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} void$\ast$ eina\-\_\-file\-\_\-map\-\_\-new (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-File} $\ast$}]{file, }
\item[{{\bf Eina\-\_\-\-File\-\_\-\-Populate}}]{rule, }
\item[{unsigned long int}]{offset, }
\item[{unsigned long int}]{length}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga8a9f5b50c7a12340421da059501660be}


Map a part of the file. 


\begin{DoxyParams}{Parameters}
{\em file} & The file handler to map in memory \\
\hline
{\em rule} & The rule to apply to the mapped memory \\
\hline
{\em offset} & The offset inside the file \\
\hline
{\em length} & The length of the memory to map \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A valid pointer to the system memory with {\ttfamily length} valid byte in it. And {\ttfamily N\-U\-L\-L} if not inside the file or anything else goes wrong.
\end{DoxyReturn}
This does handle refcounting so it will share map that target the same memory area.

\begin{DoxySince}{Since}
1.\-1 
\end{DoxySince}


References E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E, eina\-\_\-file\-\_\-map\-\_\-all(), E\-I\-N\-A\-\_\-\-F\-I\-L\-E\-\_\-\-P\-O\-P\-U\-L\-A\-T\-E, eina\-\_\-hash\-\_\-add(), eina\-\_\-hash\-\_\-direct\-\_\-add(), eina\-\_\-hash\-\_\-find(), eina\-\_\-mmap\-\_\-safety\-\_\-enabled\-\_\-set(), E\-I\-N\-A\-\_\-\-T\-R\-U\-E, and mmap().

\hypertarget{group__Eina__File__Group_ga60541f5c98e55f38d792d9f92d2d544f}{\index{File@{File}!eina\-\_\-file\-\_\-map\-\_\-free@{eina\-\_\-file\-\_\-map\-\_\-free}}
\index{eina\-\_\-file\-\_\-map\-\_\-free@{eina\-\_\-file\-\_\-map\-\_\-free}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-map\-\_\-free}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} void eina\-\_\-file\-\_\-map\-\_\-free (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-File} $\ast$}]{file, }
\item[{void $\ast$}]{map}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga60541f5c98e55f38d792d9f92d2d544f}


Unref and unmap memory if possible. 


\begin{DoxyParams}{Parameters}
{\em file} & The file handler to unmap memory from. \\
\hline
{\em map} & Memory map to unref and unmap.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\-1 
\end{DoxySince}


References munmap().



Referenced by eet\-\_\-identity\-\_\-open().

\hypertarget{group__Eina__File__Group_ga61d232dbd4b05d5134ea93ef00884550}{\index{File@{File}!eina\-\_\-file\-\_\-map\-\_\-populate@{eina\-\_\-file\-\_\-map\-\_\-populate}}
\index{eina\-\_\-file\-\_\-map\-\_\-populate@{eina\-\_\-file\-\_\-map\-\_\-populate}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-map\-\_\-populate}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} void eina\-\_\-file\-\_\-map\-\_\-populate (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-File} $\ast$}]{file, }
\item[{{\bf Eina\-\_\-\-File\-\_\-\-Populate}}]{rule, }
\item[{const void $\ast$}]{map, }
\item[{unsigned long int}]{offset, }
\item[{unsigned long int}]{length}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga61d232dbd4b05d5134ea93ef00884550}


Ask the O\-S to populate or otherwise pages of memory in file mapping. 


\begin{DoxyParams}{Parameters}
{\em file} & The file handle from which the map comes \\
\hline
{\em map} & Memory that was mapped inside of which the memory range is \\
\hline
{\em offset} & The offset in bytes from the start of the map address \\
\hline
{\em length} & The length in bytes of the memory region to populate\\
\hline
\end{DoxyParams}
This advises the operating system as to what to do with the memory mapped to the given {\ttfamily file}. This affects a specific range of memory and may not be honored if the system chooses to ignore the request.

\begin{DoxySince}{Since}
1.\-8 
\end{DoxySince}


References eina\-\_\-hash\-\_\-find().

\hypertarget{group__Eina__File__Group_ga123564d305287ee8c08b2c88c7d78a47}{\index{File@{File}!eina\-\_\-file\-\_\-map\-\_\-faulted@{eina\-\_\-file\-\_\-map\-\_\-faulted}}
\index{eina\-\_\-file\-\_\-map\-\_\-faulted@{eina\-\_\-file\-\_\-map\-\_\-faulted}!File@{File}}
\subsubsection[{eina\-\_\-file\-\_\-map\-\_\-faulted}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-Bool} eina\-\_\-file\-\_\-map\-\_\-faulted (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-File} $\ast$}]{file, }
\item[{void $\ast$}]{map}
\end{DoxyParamCaption}
)}}\label{group__Eina__File__Group_ga123564d305287ee8c08b2c88c7d78a47}


Tell if their was an I\-O error during the life of a mmaped file. 


\begin{DoxyParams}{Parameters}
{\em file} & The file handler to the mmaped file. \\
\hline
{\em map} & Memory map to check if an error occurred on it. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\-I\-N\-A\-\_\-\-T\-R\-U\-E} if there was an I\-O error, \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E} otherwise.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\-2 
\end{DoxySince}


References E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E, eina\-\_\-hash\-\_\-find(), and E\-I\-N\-A\-\_\-\-L\-I\-S\-T\-\_\-\-F\-O\-R\-E\-A\-C\-H.

