Elektra
0.9.0
|
The file plugin reads the content of a file and stores it into the parent key.
binary
treats the file as a binary file instead of a text file
info
adds additional informations about the file as metadata to the parent key.
info/size
filesizeinfo/ctime
time of last status changeinfo/atime
time of last accessinfo/mtime
time of last modificationinfo/uid
user ID of ownerinfo/gid
group ID of ownerinfo/mode
protectioninfo/inode
inode numberkdb mount file /testfile file
None.
`` <h1>Mount the file
file/multilineat
system/tests/file` sudo kdb mount "$PWD/src/plugins/file/file/singleline" system/tests/file file info=
kdb get system/tests/file #> this is a single line testfile
kdb lsmeta system/tests/file #> info/atime #> info/ctime #> info/gid #> info/inode #> info/mode #> info/mtime #> info/size #> info/uid
kdb getmeta system/tests/file info/mode
sudo kdb umount system/tests/file ```
None.