https://github.com/programator2/fs2json
Export stat information about all files as a JSON
https://github.com/programator2/fs2json
file-hierarchy file-information json
Last synced: 2 months ago
JSON representation
Export stat information about all files as a JSON
- Host: GitHub
- URL: https://github.com/programator2/fs2json
- Owner: Programator2
- License: gpl-3.0
- Created: 2021-11-18T13:26:42.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T20:10:59.000Z (almost 2 years ago)
- Last Synced: 2025-02-05T11:46:20.018Z (4 months ago)
- Topics: file-hierarchy, file-information, json
- Language: Python
- Homepage:
- Size: 155 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: COPYING
Awesome Lists containing this project
README
* Usage
This script generates JSON structure of a file system.
: ./fs2json.sh
- =root= :: start at this directory
- =output= :: file to export compressed json (should end with =.json.zst=* Output example
#+begin_src js
{
"name": "vmlinuz",
"ino": 22,
"dev": 2049,
"nlink": 1,
"uid": 0,
"gid": 0,
"size": 27,
"atime": 1637006401.1373794,
"mtime": 1637006401.1373794,
"ctime": 1637006401.1373794,
"ifsock": 0,
"iflnk": 1,
"ifblk": 0,
"isreg": 0,
"ifdir": 0,
"ifchr": 0,
"ififo": 0,
"isuid": 0,
"isgid": 0,
"isvtx": 0,
"irusr": 1,
"iwusr": 1,
"ixusr": 1,
"irgrp": 1,
"iwgrp": 1,
"ixgrp": 1,
"iroth": 1,
"iwoth": 1,
"ixoth": 1,
"children": [...]
}
#+end_src