Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PackPathGuard.h File Reference
#include <QtCore/QDir>
#include <QtCore/QFileInfo>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <optional>

Go to the source code of this file.

Namespaces

namespace  PhosphorFsLoader
 

Enumerations

enum class  PhosphorFsLoader::AbsolutePathPolicy { PhosphorFsLoader::Reject , PhosphorFsLoader::Trust }
 What to do with a declared path that is already absolute. More...
 

Functions

std::optional< QString > PhosphorFsLoader::resolveWithinDirectory (const QString &declaredPath, const QString &directory, AbsolutePathPolicy policy)
 Resolve declaredPath against directory, refusing anything that lands outside it.