include/llfio/v2.0/file_handle.hpp
/*! Create a file handle opening access to a file on path
\param base Handle to a base location on the filing system. Pass `{}` to indicate that path will be absolute.
\param path The path relative to base to open.
\param _mode How to open the file.
\param _creation How to create the file.
\param _caching How to ask the kernel to cache the file.
\param flags Any additional custom behaviours.

\errors Any of the values POSIX open() or CreateFile() can return.
*/
Create a file handle opening access to a file on path
\param base Handle to a base location on the filing system. Pass `{}` to indicate that path will be absolute.
\param path The path relative to base to open.
\param _mode How to open the file.
\param _creation How to create the file.
\param _caching How to ask the kernel to cache the file.
\param flags Any additional custom behaviours.

\errors Any of the values POSIX open() or CreateFile() can return.
Create a file handle opening access to a file on path \ param base Handle to a base location on the filing system . Pass ` {} ` to indicate that path will be absolute . \ param path The path relative to base to open . \ param _mode How to open the file . \ param _creation How to create the file . \ param _caching How to ask the kernel to cache the file . \ param flags Any additional custom behaviours . \ errors Any of the values POSIX open () or CreateFile () can return .
inline result<file_handle> file(const path_handle &base, file_handle::path_view_type path, file_handle::mode _mode = file_handle::mode::read,
                                file_handle::creation _creation = file_handle::creation::open_existing,
                                file_handle::caching _caching = file_handle::caching::all, file_handle::flag flags = file_handle::flag::none) noexcept
{
  return file_handle::file(std::forward<decltype(base)>(base), std::forward<decltype(path)>(path), std::forward<decltype(_mode)>(_mode),
                           std::forward<decltype(_creation)>(_creation), std::forward<decltype(_caching)>(_caching), std::forward<decltype(flags)>(flags));
}
inline result < file_handle > file ( const path_handle & base , file_handle :: path_view_type path , file_handle :: mode _mode = file_handle :: mode :: read , file_handle :: creation _creation = file_handle :: creation :: open_existing , file_handle :: caching _caching = file_handle :: caching :: all , file_handle :: flag flags = file_handle :: flag :: none ) noexcept { return file_handle :: file ( std :: forward < decltype ( base ) > ( base ) , std :: forward < decltype ( path ) > ( path ) , std :: forward < decltype ( _mode ) > ( _mode ) , std :: forward < decltype ( _creation ) > ( _creation ) , std :: forward < decltype ( _caching ) > ( _caching ) , std :: forward < decltype ( flags ) > ( flags ) ) ; }
Create a file handle opening access to a file on path
\param base Handle to a base location on the filing system.
Create a file handle opening access to a file on path \ param base Handle to a base location on the filing system .