Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A filesystem inode analyzer that generates Mermaid diagrams showing directory structure with detailed inode information.

Notifications You must be signed in to change notification settings

carlosgrillet/inodego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

InodeGo

A filesystem inode analyzer that generates Mermaid diagrams showing directory structure with detailed inode information.

What It Does

InodeGo recursively analyzes a directory structure and extracts low-level filesystem metadata (inodes) to create visual diagrams. It shows:

  • Inode numbers and device IDs
  • File permissions (in octal format)
  • File sizes and block allocation
  • Hard link detection
  • UID/GID ownership
  • File types (directory, regular file, symlink, pipe, socket, device)

Installation

go build -o inodego main.go

Usage

# Analyze current directory and print diagram to stdout
./inodego -stdout

# Analyze specific directory with custom depth
./inodego -stdout -max-depth 2 /path/to/directory

# Save diagram to file
./inodego -save

# Show filesystem statistics
./inodego -stats

# Combine options
./inodego -stdout -stats -max-depth 3 /path/to/directory

Options

  • -stdout - Print Mermaid diagram to stdout
  • -save - Save diagram to inode_diagram.mmd file
  • -stats - Display filesystem statistics
  • -max-depth N - Maximum recursion depth (default: 3)

Output

The tool generates a Mermaid class diagram that can be rendered using Mermaid-compatible tools. Each node in the diagram represents a file or directory with its complete inode information.

Hard links are automatically detected and shown with dotted arrows.

Example

./inodego -stdout -max-depth 2 . > diagram.mmd

Then render the .mmd file using any Mermaid renderer (GitHub, Mermaid Live Editor, etc.).

About

A filesystem inode analyzer that generates Mermaid diagrams showing directory structure with detailed inode information.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages