Split things up a bit.

Also start approximating the look and feel
This commit is contained in:
2026-05-20 22:32:42 -04:00
parent 82ca0de82d
commit 2c39765a4d
5 changed files with 130 additions and 67 deletions
+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <string>
#include <filesystem>
struct Entry
{
std::string name;
std::string perms;
bool is_dir;
bool is_exe;
};
bool is_exe( std::filesystem::directory_entry entry );
std::string drwx( std::filesystem::directory_entry entry );
std::string format_entry( const Entry &entry, std::size_t widest );