
\begin{DoxyItemize}
\item infos = Information about the file plugin is in keys below
\item infos/author = Thomas Waser \href{mailto:thomas.waser@libelektra.org}{\tt thomas.\+waser@libelektra.\+org}
\item infos/licence = B\+SD
\item infos/needs =
\item infos/provides = storage/file
\item infos/recommends =
\item infos/placements = getstorage setstorage
\item infos/status = specific unittest tested nodep libc configurable preview experimental
\item infos/metadata =
\item infos/description = reads complete file into a key
\end{DoxyItemize}

The file plugin reads the content of a file and stores it into the parent key.

\subsection*{Configuration}


\begin{DoxyItemize}
\item {\ttfamily binary}

treats the file as a binary file instead of a text file
\item {\ttfamily info}

adds additional informations about the file as metadata to the parent key.
\begin{DoxyItemize}
\item {\ttfamily info/size} filesize
\item {\ttfamily info/ctime} time of last status change
\item {\ttfamily info/atime} time of last access
\item {\ttfamily info/mtime} time of last modification
\item {\ttfamily info/uid} user ID of owner
\item {\ttfamily info/gid} group ID of owner
\item {\ttfamily info/mode} protection
\item {\ttfamily info/inode} inode number
\end{DoxyItemize}
\end{DoxyItemize}

\subsection*{Usage}

{\ttfamily kdb mount file /testfile file}

\subsection*{Dependencies}

None.

\subsection*{Examples}

``{\ttfamily  $<$h1$>$Mount the file}file/multiline{\ttfamily at}system/tests/file` sudo kdb mount \char`\"{}\$\+P\+W\+D/src/plugins/file/file/singleline\char`\"{} system/tests/file file info=

\section*{Check the content of the file}

kdb get system/tests/file \#$>$ this is a single line testfile

\section*{List available attributes of the mounted file}

kdb lsmeta system/tests/file \#$>$ info/atime \#$>$ info/ctime \#$>$ info/gid \#$>$ info/inode \#$>$ info/mode \#$>$ info/mtime \#$>$ info/size \#$>$ info/uid

\section*{Check out the file’s permissions}

kdb getmeta system/tests/file info/mode \section*{S\+T\+D\+O\+U\+T-\/\+R\+E\+G\+EX\+: 1006\mbox{[}46\mbox{]}4}

\section*{Unmount the file}

sudo kdb umount system/tests/file ```

\subsection*{Limitations}

None. 