MCPcopy Create free account
hub / github.com/ariccio/altWinDirStat / printTree

Function printTree

Reference code/AsyncWalk/AsyncWalk/AsyncWalk.cpp:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291 }
292
293void printTree( File* treeRoot ) {
294 auto depth = treeRoot->CountDepth( );
295 std::wcout << L"-";
296 for ( std::uint64_t i = 0; i < depth; ++i ) {
297 std::wcout << L"-";
298 }
299 std::wcout << L">" << std::setw( 10 ) << treeRoot->m_FileInfo.m_size << L", " << treeRoot->m_FileInfo.name << std::endl;
300 for ( auto& aChild : treeRoot->m_children ) {
301 printTree( aChild.get( ) );
302 }
303 }
304
305
306int stdWorkAsync( _In_ std::wstring arg, _In_ const bool isLargeFetch, _In_ const bool isBasicInfo, const bool DoPrintTree = false ) {

Callers 1

stdWorkAsyncFunction · 0.85

Calls 2

CountDepthMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected