7#include <aws/core/Core_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
132 virtual operator bool()
const {
return m_directoryEntry.operator bool(); }
205 operator bool()
const;
virtual DirectoryEntry Next()=0
const Aws::String & GetPath() const
const DirectoryEntry & GetDirectoryEntry() const
Aws::UniquePtr< Directory > Descend(const DirectoryEntry &directoryEntry)
static Aws::Vector< Aws::String > GetAllFilePathsInDirectory(const Aws::String &path)
DirectoryEntry m_directoryEntry
Directory(const Aws::String &path, const Aws::String &relativePath)
virtual ~Directory()=default
DirectoryTree(const Aws::String &path)
bool operator==(const Aws::String &path)
void TraverseDepthFirst(const DirectoryEntryVisitor &visitor, bool postOrderTraversal=false)
void TraverseBreadthFirst(const DirectoryEntryVisitor &visitor)
Aws::Map< Aws::String, DirectoryEntry > Diff(DirectoryTree &other)
bool operator==(DirectoryTree &other)
std::function< bool(const DirectoryTree *, const DirectoryEntry &)> DirectoryEntryVisitor
AWS_CORE_API bool DeepDeleteDirectory(const char *toDelete)
AWS_CORE_API Aws::String CreateTempFilePath()
AWS_CORE_API Aws::String GetHomeDirectory()
AWS_CORE_API Aws::String GetExecutableDirectory()
static const char PATH_DELIM
AWS_CORE_API bool RelocateFileOrDirectory(const char *from, const char *to)
AWS_CORE_API bool CreateDirectoryIfNotExists(const char *path, bool createParentDirs=false)
Creates directory if it doesn't exist. Returns true if the directory was created or already exists....
AWS_CORE_API bool RemoveFileIfExists(const char *fileName)
AWS_CORE_API bool RemoveDirectoryIfExists(const char *path)
AWS_CORE_API Aws::UniquePtr< Directory > OpenDirectory(const Aws::String &path, const Aws::String &relativePath="")
AWS_CORE_API bool DeepCopyDirectory(const char *from, const char *to)
AWS_CORE_API Aws::String Join(const Aws::String &leftSegment, const Aws::String &rightSegment)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::unique_ptr< T, D > UniquePtr