Skip to content

RobertBendun/inifs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INIfs

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

Example

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

See also

Releases

No releases published

Packages

No packages published