Educational filesystem allowing for FS traversal over INI file
Filesystem | INI |
---|---|
Read file filename |
Read value of a key filename |
Write value to file filename |
Make key filename with value value |
Make directory dir |
Make section dir |
Read file filename in directory dir |
Read value of a key filename in section dir |
Write value to file filename in directory dir |
Make key filename in section dir with value value |
For file example.ini
:
author=Robert
date=2021-11-01
[kowalski]
pos_x=10
pos_y=20
name=Jan Kowalski
[nowak]
pos_x=30
pos_y=40
name=Grzegorz Nowak
$ mkdir test
$ inifs --ini=example.ini -f test &
$ tree test -p
test
├── [-rw-r--r--] author
├── [-rw-r--r--] date
├── [drwxr-xr-x] kowalski
│ ├── [-rw-r--r--] name
│ ├── [-rw-r--r--] pos_x
│ └── [-rw-r--r--] pos_y
└── [drwxr-xr-x] nowak
├── [-rw-r--r--] name
├── [-rw-r--r--] pos_x
└── [-rw-r--r--] pos_y
2 directories, 8 files