lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::DirectoryService Class Reference

#include <DirectoryService.h>

Public Member Functions

 DirectoryService (std::filesystem::path path)
 
bool exists ()
 
std::string getName ()
 
std::filesystem::path getPath ()
 
bool createDirectory ()
 
bool createDirectories ()
 

Detailed Description

DirectoryService class wraps default operations with the directory

Constructor & Destructor Documentation

◆ DirectoryService()

lintel::DirectoryService::DirectoryService ( std::filesystem::path  path)
explicit

Construct a DirectoryService for the given path.

Parameters
paththe directory path

Member Function Documentation

◆ createDirectories()

bool lintel::DirectoryService::createDirectories ( )

creates recursive all needed directory

Returns
true if successful

◆ createDirectory()

bool lintel::DirectoryService::createDirectory ( )

create single directory

Returns
true if successful

◆ exists()

bool lintel::DirectoryService::exists ( )

Checks if DirectoryService is available

Returns
true if directory exists and is directory

◆ getName()

std::string lintel::DirectoryService::getName ( )

Returns the directory name.

Returns
the directory name

◆ getPath()

std::filesystem::path lintel::DirectoryService::getPath ( )

Returns the full path of the directory.

Returns
the directory path

The documentation for this class was generated from the following file: