Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
/ fs Public archive

Modern file system wrapper. πŸ“

Notifications You must be signed in to change notification settings

tykind/fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 

Repository files navigation

FS

File system wrapper, supported only with c++20.

Usage

  • Folders
fs::Folder cfg("cfg");

if (cfg.exists)
{

  for (const auto& file : cfg.read())
     if (file->getFileType() == fs::enums::DOCUMENT)
     {
          const auto document = file->translate<fs::Document>();

          // Log file & content

          std::clog << "Path: " << document->path << "\nContents: " << document->read().str().c_str() << std::endl;

          std::stringstream toWrite{ "New contents" };
          document->write(toWrite);
     }
}
  • Normal files
fs::Document document("cfg/not ignored 1")

// Log document content

std::clog << document->read().str().c_str() << std::endl;

Image example

image

About

Modern file system wrapper. πŸ“

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages