Home | Libraries | People | FAQ | More |
Return a normalised filesystem::path from an AFIO path.
On POSIX this passes through its input unchanged.
On Windows AFIO exclusively uses NT kernel paths which are not necessarily
trivially convertible to Win32 paths. As an example, the Win32 path
might be C:\\Foo
or even \\??\\C:\\Foo
.
This function will convert any NT kernel path into something which can
be fed to normal Win32 APIs - a drive letter if available, else a GUID
volume path, and with an extended path prefix if the path is sufficiently
long. It also scans the path for characters illegal under Win32 or paths
which begin with a space or end with a period, and will extended path
prefix such paths as well.
\\Device\\HarddiskVolume1\\Foo
filesystem::path normalise_path(path p, path_normalise type = path_normalise::dos)
Type |
Concept |
Name |
Description |
---|---|---|---|
path |
p |
Path to be normalised |
|
path_normalise |
type |
A path_normalise enum |
#include <boost/afio/v2/afio.hpp>