4.5. Traversing Directory Trees
Directory traversal is a very common activity in many different types of applications, and there are a number of good reasons to use this capability. For example, you might need to accomplish any of the following tasks:
Delete a directory and any subdirectories within it
Search a drive for the biggest file or 100 biggest files
Get all of the file names held in a directory so that you can back them up to tape
Search for a file or group of files anywhere on a drive
Search through directories to find .obj or .tmp files to delete, to free disk space
Find the total disk space consumed by a directory tree
Search for a specific word in any .txt file you find on a drive
Display the directory tree for a drive as a graphic
Check ...
Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.