
\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.


\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}

{\ttfamily kdb mount file /testfile file}

None.

``{\ttfamily  @section autotoc\+\_\+md222 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=\hypertarget{autotoc_md217_autotoc_md223}{}\section{Check the content of the file}\label{autotoc_md217_autotoc_md223}
kdb get system\+:/tests/file \#$>$ this is a single line testfile\hypertarget{autotoc_md217_autotoc_md224}{}\section{List available attributes of the mounted file}\label{autotoc_md217_autotoc_md224}
kdb meta-\/ls system\+:/tests/file \#$>$ info/atime \#$>$ info/ctime \#$>$ info/gid \#$>$ info/inode \#$>$ info/mode \#$>$ info/mtime \#$>$ info/size \#$>$ info/uid\hypertarget{autotoc_md217_autotoc_md225}{}\section{Check out the file’s permissions}\label{autotoc_md217_autotoc_md225}
kdb meta-\/get system\+:/tests/file info/mode \hypertarget{autotoc_md217_autotoc_md226}{}\section{S\+T\+D\+O\+U\+T-\/\+R\+E\+G\+E\+X\+: 1006\mbox{[}46\mbox{]}4}\label{autotoc_md217_autotoc_md226}
\hypertarget{autotoc_md217_autotoc_md227}{}\section{Unmount the file}\label{autotoc_md217_autotoc_md227}
sudo kdb umount system\+:/tests/file ```\hypertarget{autotoc_md217_autotoc_md228}{}\subsection{Limitations}\label{autotoc_md217_autotoc_md228}
None. 