#include <userver/fs/blocking/temp_directory.hpp>
A unique directory for temporary files. The directory is deleted when the TempDirectory is destroyed. 
- Note
 - The directory, as well as any newly created parent directories, has permissions=0700. 
 
Definition at line 19 of file temp_directory.hpp.
 | 
| static TempDirectory  | Create () | 
|   | Create the directory at the default path for temporary files.  
  | 
|   | 
| static TempDirectory  | Create (std::string_view parent_path, std::string_view name_prefix) | 
|   | Create the directory at the specified path.  
  | 
|   | 
| 
static TempDirectory  | Adopt (std::string path) | 
|   | Take ownership of an existing directory. 
  | 
|   | 
◆ Create() [1/2]
Create the directory at the default path for temporary files. 
- Exceptions
 - 
  
  
 
 
 
◆ Create() [2/2]
  
  
      
        
          | static TempDirectory fs::blocking::TempDirectory::Create  | 
          ( | 
          std::string_view |           parent_path,  | 
         
        
           | 
           | 
          std::string_view |           name_prefix ) | 
         
       
   | 
  
static   | 
  
 
Create the directory at the specified path. 
- Parameters
 - 
  
    | parent_path | The directory where the temporary directory will be created  | 
    | name_prefix | Directory name prefix, a random string will be added after the prefix  | 
  
   
- Exceptions
 - 
  
  
 
 
 
◆ Remove()
      
        
          | void fs::blocking::TempDirectory::Remove  | 
          ( | 
           | ) | 
           && | 
        
      
 
Remove the directory early. 
- Exceptions
 - 
  
  
 
 
 
The documentation for this class was generated from the following file: