The File Explorer is a full-screen program that lets you browse the computer’s file system, inspect metadata for any file or directory, and open files directly in the CC:TweakedDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/PrinceOfCookies/CookieOS/llms.txt
Use this file to discover all available pages before exploring further.
edit editor — all without leaving CookieOS. It is launched from the Programs menu and requires no special peripherals.
Prerequisites
No peripheral attachments are required. The File Explorer works on any CookieOS computer.Interface Layout
The screen is divided into three distinct panels drawn using CC:Tweakedwindow objects.
Top Panel (green border)
Spans the top of the screen and serves as the header bar. It displays theCOI logo characters rendered in block pixels on the left side, a matching ICC mirror on the right side, and a live clock in the centre that refreshes every 5 seconds via os.startTimer.
Left Panel (red border)
Occupies the lower-left half of the screen. It lists the contents of the current directory, separated into directories and files:- Directories are shown in light-blue text.
- Files are shown in green text.
- The currently selected item is highlighted with a
>prefix (also in light-blue).
rom in their path are excluded from listing entirely (see note below).
Right Panel
Occupies the lower-right half of the screen, separated from the file listing by a yellow vertical line drawn at the horizontal midpoint of the red-bordered box. It shows metadata for the currently selected item using CookieOS’sfs.attributes2() extension:
| Field | Example value |
|---|---|
| Size | 12.50 KB |
| Modified | 2 days, 3 hrs |
| Created | 1 day, 10 hrs |
| Read Only | Yes / No |
Metadata fetch example
true requests human-readable formatting. Without it, raw epoch values would be returned.
Navigation
All navigation is keyboard-driven.| Key | Action |
|---|---|
| Up arrow | Move selection up |
| Down arrow | Move selection down |
| Enter | Open the selected directory, or open the selected file in edit |
| Backspace | Navigate to the parent directory |
| F6 | Exit the File Explorer and return to the shell |
shell.run("edit " .. selected) and then exits, handing control to the built-in CC:Tweaked editor. When pressed on a directory, the explorer navigates into it and pushes the new path onto an internal history stack, which Backspace pops from.
Directory History
The explorer maintains a Lua table namedhistory that tracks every directory visited in the current session. The starting directory is always /. Backspace removes the last entry from history and returns to the previous path. Navigating forward with Enter appends the new path.
The
rom/ directory and any path containing rom is intentionally excluded from the File Explorer’s listing. This directory is part of the CC:Tweaked read-only ROM and contains system programs and APIs. Its files cannot be modified, so hiding them keeps the explorer focused on user-accessible content.