Class to scan the directory hierarchy using a depth first scan.  
 More...
#include <os0file.h>
 | 
| struct   | Entry | 
|   | Directory names for the depth first directory scan.  More...
  | 
|   | 
 | 
| static bool  | is_directory (const Path &path) | 
|   | Check if the path is a directory.  More...
  | 
|   | 
| template<typename F >  | 
| static void  | walk (const Path &basedir, bool recursive, F &&f) | 
|   | Depth first traversal of the directory starting from basedir.  More...
  | 
|   | 
Class to scan the directory hierarchy using a depth first scan. 
 
◆ Function
◆ Path
◆ is_directory()
  
  
      
        
          | bool Dir_Walker::is_directory  | 
          ( | 
          const Path &  | 
          path | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Check if the path is a directory. 
The file/directory must exist. 
- Parameters
 - 
  
    | [in] | path | The path to check  | 
  
   
- Returns
 - true if it is a directory 
 
 
 
◆ walk()
template<typename F > 
  
  
      
        
          | static void Dir_Walker::walk  | 
          ( | 
          const Path &  | 
          basedir,  | 
         
        
           | 
           | 
          bool  | 
          recursive,  | 
         
        
           | 
           | 
          F &&  | 
          f  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Depth first traversal of the directory starting from basedir. 
- Parameters
 - 
  
    | [in] | basedir | Start scanning from this directory  | 
    | [in] | recursive | true if scan should be recursive  | 
    | [in] | f | Function to call for each entry  | 
  
   
 
 
◆ walk_posix()
  
  
      
        
          | void Dir_Walker::walk_posix  | 
          ( | 
          const Path &  | 
          basedir,  | 
         
        
           | 
           | 
          bool  | 
          recursive,  | 
         
        
           | 
           | 
          Function &&  | 
          f  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprivate   | 
  
 
Depth first traversal of the directory starting from basedir. 
- Parameters
 - 
  
    | [in] | basedir | Start scanning from this directory  | 
    | [in] | recursive | true if scan should be recursive  | 
    | [in] | f | Function to call for each entry  | 
  
   
 
 
The documentation for this class was generated from the following files: