# duttaturja/virtual-file-system architecture

> Architecture diagram of the GitHub repository duttaturja/virtual-file-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/duttaturja/virtual-file-system
- Repository: https://github.com/duttaturja/virtual-file-system

## Overview

This is a desktop virtual-file-system simulator. The principal workflow is a user selecting an operation in the Tkinter interface, which invokes the VFS core to read or modify files in its selected directory; direct filesystem writes provide persistence. The README describes CLI and directory-management capabilities, but the sampled application is graphical and the core shown does not implement directory navigation or structure creation. MetadataManager provides separate indexing and search functionality, but the available references show no connection from the application or core to it.

Main entry points: [`vfs_app.py`](https://github.com/duttaturja/virtual-file-system/blob/main/vfs_app.py) (Tkinter app), [`vfs_core.py`](https://github.com/duttaturja/virtual-file-system/blob/main/vfs_core.py) (VFS operations), [`vfs_root`](https://github.com/duttaturja/virtual-file-system/tree/main/vfs_root) (Virtual root files), [`vfs_metadata.py`](https://github.com/duttaturja/virtual-file-system/blob/main/vfs_metadata.py) (Metadata manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interface"]
  node_app["Tkinter app<br/>[vfs_app.py]"]
end

subgraph group_filesystem["Virtual filesystem"]
  node_vfs["VFS operations<br/>[vfs_core.py]"]
  node_disk[("Virtual root files")]
end

subgraph group_metadata["Metadata"]
  node_metadata_manager["Metadata manager<br/>[vfs_metadata.py]"]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"invokes operations"| node_vfs
node_vfs -->|"reads and writes"| node_disk
node_metadata_manager -.->|"indexes files"| node_disk

click node_app "https://github.com/duttaturja/virtual-file-system/blob/main/vfs_app.py"
click node_vfs "https://github.com/duttaturja/virtual-file-system/blob/main/vfs_core.py"
click node_disk "https://github.com/duttaturja/virtual-file-system/tree/main/vfs_root"
click node_metadata_manager "https://github.com/duttaturja/virtual-file-system/blob/main/vfs_metadata.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_user toneBlue
class node_vfs,node_disk toneAmber
class node_metadata_manager toneMint
```

## Components

### User interface

- [Tkinter app](https://github.com/duttaturja/virtual-file-system/blob/main/vfs_app.py): `vfs_app.py`

### Virtual filesystem

- [VFS operations](https://github.com/duttaturja/virtual-file-system/blob/main/vfs_core.py): `vfs_core.py`
- [Virtual root files](https://github.com/duttaturja/virtual-file-system/tree/main/vfs_root): `vfs_root`

### Metadata

- [Metadata manager](https://github.com/duttaturja/virtual-file-system/blob/main/vfs_metadata.py): `vfs_metadata.py`

### Other components

- **User**

## Connections

- User → Tkinter app: uses (evidence: `README.md`)
- Tkinter app → VFS operations: invokes operations (evidence: `vfs_app.py`)
- VFS operations → Virtual root files: reads and writes (evidence: `vfs_core.py`)
- Metadata manager → Virtual root files: indexes files
