add create file and dir

This commit is contained in:
chatlanin
2023-03-18 14:03:39 +03:00
parent 681327e663
commit 8c61772c66
8 changed files with 56 additions and 15 deletions

View File

@@ -5,6 +5,8 @@
#include <vector>
#include <algorithm>
#include "logger/logger.hpp"
namespace rrr
{
// NONE - просто выводится текст. когда пупка пуста и нет контента вообще
@@ -98,6 +100,12 @@ namespace rrr::file_utils
inline files fill(std::filesystem::path pwd)
{
files current_files = get_files_struct(pwd);
if (current_files.size() == 1 && current_files.at(0).path == pwd / "no permission")
{
return current_files;
}
files tmp;
tmp.reserve(current_files.size());
std::sort(current_files.begin(), current_files.end());