Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
Loading...
Searching...
No Matches
Recognition::PathIsNotDirectory Class Referencefinal

Exception thrown when a path is expected to be a directory but is not. More...

#include <magic_exception.hpp>

Inheritance diagram for Recognition::PathIsNotDirectory:
Collaboration diagram for Recognition::PathIsNotDirectory:

Public Member Functions

 PathIsNotDirectory (const std::string &path)
 Construct PathIsNotDirectory with the invalid path.
Public Member Functions inherited from Recognition::MagicException
 MagicException (const std::string &function, const std::string &error_message)
 Construct MagicException with function name and error message.

Detailed Description

Exception thrown when a path is expected to be a directory but is not.

This exception is thrown by Magic::IdentifyFiles() when the specified directory path exists but is not a directory (e.g., it's a regular file).

See also
Magic::IdentifyFiles()
Since
10.0.0

Constructor & Destructor Documentation

◆ PathIsNotDirectory()

Recognition::PathIsNotDirectory::PathIsNotDirectory ( const std::string & path)
inlineexplicit

Construct PathIsNotDirectory with the invalid path.

Parameters
[in]pathThe path that is not a directory.
Since
10.0.0

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