include/llfio/v2.0/directory_handle.hpp
/*! Create a directory handle creating the named directory on some path which
the OS declares to be suitable for temporary files.
Note also that an empty name is equivalent to calling
`uniquely_named_file(path_discovery::storage_backed_temporary_files_directory())` and the creation
parameter is ignored.

\errors Any of the values POSIX open() or CreateFile() can return.
*/
Create a directory handle creating the named directory on some path which
the OS declares to be suitable for temporary files.
Note also that an empty name is equivalent to calling
`uniquely_named_file(path_discovery::storage_backed_temporary_files_directory())` and the creation
parameter is ignored.

\errors Any of the values POSIX open() or CreateFile() can return.
Create a directory handle creating the named directory on some path which the OS declares to be suitable for temporary files . Note also that an empty name is equivalent to calling ` uniquely_named_file ( path_discovery :: storage_backed_temporary_files_directory () ) ` and the creation parameter is ignored . \ errors Any of the values POSIX open () or CreateFile () can return .
inline result<directory_handle> temp_directory(directory_handle::path_view_type name = directory_handle::path_view_type(), directory_handle::mode _mode = directory_handle::mode::write, directory_handle::creation _creation = directory_handle::creation::if_needed,
                                               directory_handle::caching _caching = directory_handle::caching::all, directory_handle::flag flags = directory_handle::flag::none) noexcept
{
  return directory_handle::temp_directory(std::forward<decltype(name)>(name), std::forward<decltype(_mode)>(_mode), std::forward<decltype(_creation)>(_creation), std::forward<decltype(_caching)>(_caching), std::forward<decltype(flags)>(flags));
}
inline result < directory_handle > temp_directory ( directory_handle :: path_view_type name = directory_handle :: path_view_type ( ) , directory_handle :: mode _mode = directory_handle :: mode :: write , directory_handle :: creation _creation = directory_handle :: creation :: if_needed , directory_handle :: caching _caching = directory_handle :: caching :: all , directory_handle :: flag flags = directory_handle :: flag :: none ) noexcept { return directory_handle :: temp_directory ( std :: forward < decltype ( name ) > ( name ) , std :: forward < decltype ( _mode ) > ( _mode ) , std :: forward < decltype ( _creation ) > ( _creation ) , std :: forward < decltype ( _caching ) > ( _caching ) , std :: forward < decltype ( flags ) > ( flags ) ) ; }
Create a directory handle creating the named directory on some path which
the OS declares to be suitable for temporary files.
Create a directory handle creating the named directory on some path which the OS declares to be suitable for temporary files .