LLFIO  v2.00
path_discovery.hpp File Reference

Provides path_discovery More...

#include "fs_handle.hpp"
#include "stat.hpp"

Classes

struct  llfio_v2_xxx::path_discovery::discovered_path
 A discovered path. More...
 

Namespaces

 llfio_v2_xxx
 The LLFIO namespace.
 
 llfio_v2_xxx::path_discovery
 Contains functions used to discover suitable paths for things.
 

Functions

_store & llfio_v2_xxx::path_discovery::detail::path_store ()
 
_capture_starting_working_directory_t & llfio_v2_xxx::path_discovery::detail::capture_starting_working_directory ()
 
std::ostream & llfio_v2_xxx::path_discovery::operator<< (std::ostream &s, const discovered_path::source_type &v)
 
span< discovered_path > llfio_v2_xxx::path_discovery::all_temporary_directories (bool refresh=false, span< path_view > fallbacks={}, span< path_view > overrides={}) noexcept
 Returns a list of potential directories which might be usuable for temporary files. More...
 
span< discovered_path > llfio_v2_xxx::path_discovery::verified_temporary_directories (const char *_storage_backed_regex=storage_backed_regex, const char *_memory_backed_regex=memory_backed_regex) noexcept
 Returns a subset of all_temporary_directories() each of which has been tested to be writable by the current process. No testing is done of available writable space. More...
 
const path_handle & llfio_v2_xxx::path_discovery::storage_backed_temporary_files_directory () noexcept
 Returns a reference to an open handle to a verified temporary directory where files created are stored in a filesystem directory, usually under the current user's quota. More...
 
bool llfio_v2_xxx::path_discovery::storage_backed_temporary_files_directory_is_networked () noexcept
 True if the storage backed temporary files directory is on a networked file system.
 
const path_handle & llfio_v2_xxx::path_discovery::memory_backed_temporary_files_directory () noexcept
 Returns a reference to an open handle to a verified temporary directory where files created are stored in memory/paging file, and thus access may be a lot quicker, but stronger limits on capacity may apply. More...
 
bool llfio_v2_xxx::path_discovery::memory_backed_temporary_files_directory_is_networked () noexcept
 True if the memory backed temporary files directory is on a networked file system.
 
const path_handle & llfio_v2_xxx::path_discovery::temporary_named_pipes_directory () noexcept
 Returns a reference to an open handle to a verified temporary directory where named pipes may be created and found. More...
 
result< path_handle > llfio_v2_xxx::path_discovery::current_working_directory () noexcept
 Returns a handle to the current working directory, which can change at any moment during a process' lifetime.
 
const path_handle & llfio_v2_xxx::path_discovery::starting_working_directory () noexcept
 Returns a reference to an open handle to a verified directory which was the working directory during static data init of the process before main() was invoked. More...
 

Detailed Description

Provides path_discovery