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 .
LLFIO_MAKE_FREE_FUNCTION
  static inline result<directory_handle> temp_directory(path_view_type name = path_view_type(), mode _mode = mode::write, creation _creation = creation::if_needed, caching _caching = caching::all, flag flags = flag::none) noexcept
  {
    auto &tempdirh = path_discovery::storage_backed_temporary_files_directory();
    return name.empty() ? uniquely_named_directory(tempdirh, _mode, _caching, flags) : directory(tempdirh, name, _mode, _creation, _caching, flags);
  }
LLFIO_MAKE_FREE_FUNCTION static inline result < directory_handle > temp_directory ( path_view_type name = path_view_type ( ) , mode _mode = mode :: write , creation _creation = creation :: if_needed , caching _caching = caching :: all , flag flags = flag :: none ) noexcept { auto & tempdirh = path_discovery :: storage_backed_temporary_files_directory ( ) ; return name . empty ( ) ? uniquely_named_directory ( tempdirh , _mode , _caching , flags ) : directory ( tempdirh , name , _mode , _creation , _caching , 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 .