
\begin{DoxyItemize}
\item infos = Information about the file plugin is in keys below
\item infos/author = Thomas Waser \href{mailto:thomas.waser@libelektra.org}{\texttt{ thomas.\+waser@libelektra.\+org}}
\item infos/licence = BSD
\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}\hypertarget{md_src_plugins_file_README_src_plugins_file_README_md}{}\doxysection{Introduction}\label{md_src_plugins_file_README_src_plugins_file_README_md}
The file plugin reads the content of a file and stores it into the parent key.\hypertarget{md_src_plugins_file_README_autotoc_md203}{}\doxysection{Installation}\label{md_src_plugins_file_README_autotoc_md203}
See \mbox{\hyperlink{doc_INSTALL_md}{installation}}. The package is called {\ttfamily libelektra5-\/experimental}.\hypertarget{md_src_plugins_file_README_autotoc_md204}{}\doxysection{Configuration}\label{md_src_plugins_file_README_autotoc_md204}

\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}\hypertarget{md_src_plugins_file_README_autotoc_md205}{}\doxysection{Usage}\label{md_src_plugins_file_README_autotoc_md205}
{\ttfamily kdb mount file /testfile file}\hypertarget{md_src_plugins_file_README_autotoc_md206}{}\doxysection{Dependencies}\label{md_src_plugins_file_README_autotoc_md206}
None.\hypertarget{md_src_plugins_file_README_autotoc_md207}{}\doxysection{Examples}\label{md_src_plugins_file_README_autotoc_md207}

\begin{DoxyCode}{0}
\DoxyCodeLine{\# Mount the file `file/multiline` at `system:/tests/file`}
\DoxyCodeLine{sudo kdb mount "{}\$PWD/src/plugins/file/file/singleline"{} system:/tests/file file info=}
\DoxyCodeLine{}
\DoxyCodeLine{\# Check the content of the file}
\DoxyCodeLine{kdb get system:/tests/file}
\DoxyCodeLine{\#> this is a single line testfile}
\DoxyCodeLine{}
\DoxyCodeLine{\#  List available attributes of the mounted file}
\DoxyCodeLine{kdb meta-\/ls system:/tests/file}
\DoxyCodeLine{\#> info/atime}
\DoxyCodeLine{\#> info/ctime}
\DoxyCodeLine{\#> info/gid}
\DoxyCodeLine{\#> info/inode}
\DoxyCodeLine{\#> info/mode}
\DoxyCodeLine{\#> info/mtime}
\DoxyCodeLine{\#> info/size}
\DoxyCodeLine{\#> info/uid}
\DoxyCodeLine{}
\DoxyCodeLine{\# Check out the file’s permissions}
\DoxyCodeLine{kdb meta-\/get system:/tests/file info/mode}
\DoxyCodeLine{\# STDOUT-\/REGEX: 1006[46]4}
\DoxyCodeLine{}
\DoxyCodeLine{\# Unmount the file}
\DoxyCodeLine{sudo kdb umount system:/tests/file}

\end{DoxyCode}
\hypertarget{md_src_plugins_file_README_autotoc_md208}{}\doxysection{Limitations}\label{md_src_plugins_file_README_autotoc_md208}
None. 