The virtual filesystem provides a complete directory structure that mirrors real filesystem operations while being backed by Jekyll data and in-memory storage.
/
├── home/
│ └── user/
│ ├── README.txt
│ ├── cv.pdf
│ ├── documents/
│ ├── projects/
│ └── company_logs/
├── companies/
│ ├── garudamedia/
│ ├── solomon-mining/
│ ├── berkahkarya/
│ └── aitradepulse/
├── achievements/
│ ├── leadership.txt
│ └── technical.txt
├── skills/
│ ├── languages.txt
│ └── frameworks.txt
└── classified/
└── secret_project.enc
resolvePath(currentPath, targetPath) - Resolve relative/absolute pathsexists(path) - Check if path existsisDirectory(path) - Check if path is directoryisFile(path) - Check if path is filelist(path) - List directory contentsreadFile(path) - Read file contentwriteFile(path, content) - Write filecreateDirectory(path) - Create directoryremove(path) - Remove file/directorymove(sourcePath, destPath) - Move/rename fileSupports:
/home/user../parent~ → /home/user...Loads Jekyll data into virtual filesystem:
window.JEKYLL_DATAterminal.yml - Bio, skills, projects, experiencecompanies.yml - Company details and achievementsprojects.json - Project informationconst content = this.filesystem.readFile('/home/user/README.txt');
if (content !== null) {
// Process content
}
const success = this.filesystem.writeFile('/home/user/newfile.txt', 'content');
// Create directory
this.filesystem.createDirectory('/home/user/newdir');
// List directory
const listing = this.filesystem.list('/home/user');
listing.forEach(item => {
console.log(item.name, item.type);
});
Commands use filesystem for:
ls - List directory contentscd - Change directorycat - Read file contentsmkdir - Create directory (EcmaOS)touch - Create file (EcmaOS)rm - Remove file (EcmaOS)