| 291 | } |
| 292 | |
| 293 | void 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 | |
| 306 | int stdWorkAsync( _In_ std::wstring arg, _In_ const bool isLargeFetch, _In_ const bool isBasicInfo, const bool DoPrintTree = false ) { |
no test coverage detected