AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
Public Member Functions | List of all members
Aws::FileSystem::DirectoryTree Class Reference

#include <FileSystem.h>

Public Member Functions

 DirectoryTree (const Aws::String &path)
 
bool operator== (DirectoryTree &other)
 
bool operator== (const Aws::String &path)
 
 
 operator bool () const
 
void TraverseDepthFirst (const DirectoryEntryVisitor &visitor, bool postOrderTraversal=false)
 
 

Detailed Description

Wrapper around directory. Currently provides a Depth-first and Breadth-first traversal of the provided path. This is most likely the class you are looking for.

Definition at line 175 of file FileSystem.h.

Constructor & Destructor Documentation

◆ DirectoryTree()

Aws::FileSystem::DirectoryTree::DirectoryTree ( const Aws::String path)

Create a directory object for use with traversal using the provided path.

Member Function Documentation

◆ Diff()

Aws::Map< Aws::String, DirectoryEntry > Aws::FileSystem::DirectoryTree::Diff ( DirectoryTree other)

Computes the difference between two directory trees based on their relative paths. File contents are not taken into account, only the tree structure.

Returns the diff between the two trees where the key is the relative path. The Directory entry will contain the absolute path and file size.

◆ operator bool()

Aws::FileSystem::DirectoryTree::operator bool ( ) const

If the object is valid for use: true. Otherwise: false.

◆ operator==() [1/2]

bool Aws::FileSystem::DirectoryTree::operator== ( const Aws::String path)

Returns true if the Directory tree structure at path matches. Otherwise false.

◆ operator==() [2/2]

bool Aws::FileSystem::DirectoryTree::operator== ( DirectoryTree other)

Returns true if the Directory Tree structures match. Otherwise false.

◆ TraverseBreadthFirst()

void Aws::FileSystem::DirectoryTree::TraverseBreadthFirst ( const DirectoryEntryVisitor visitor)

Performs a breadth-first traversal of the directory tree. Upon encountering an entry, visitor will be invoked.

◆ TraverseDepthFirst()

void Aws::FileSystem::DirectoryTree::TraverseDepthFirst ( const DirectoryEntryVisitor visitor,
bool  postOrderTraversal = false 
)

Performs a depth-first traversal of the directory tree. Upon encountering an entry, visitor will be invoked. If postOrder is true, a pre-order traversal will be used. otherwise pre-order will be used.


The documentation for this class was generated from the following file: