Split things up a bit.
Also start approximating the look and feel
This commit is contained in:
@@ -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 );
|
||||
Reference in New Issue
Block a user