Skip to main content Accessibility help
Internet Explorer 11 is being discontinued by Microsoft in August 2021. If you have difficulties viewing the site on Internet Explorer 11 we recommend using a different browser such as Microsoft Edge, Google Chrome, Apple Safari or Mozilla Firefox.

Chapter 20: Recursion

Chapter 20: Recursion

pp. 633-654

Authors

, University of Washington, Bothell, , City College, City University of New York, , Envestnet Tamarac, Washington, , University of Washington, Bothell, , Biota Technology Inc., California
Resources available Unlock the full potential of this textbook with additional resources. There are free resources and Instructor restricted resources available for this textbook. Explore resources
  • Add bookmark
  • Cite
  • Share

Summary

In Section 10.2.4, we examined copying and deleting files and directories. The tools we used – copytree, rmtree, and move – automatically handled directory trees. For instance, a copy operation using copytree on a directory copies not just the topmost directory but all files and subdirectories underneath the topmost directory, and so on to every file and subdirectory. In the present chapter, we explore how a programming language implements the idea of “do-this-action-over-nested-levels” through the principle of recursion.

About the book

Access options

Review the options below to login to check your access.

Purchase options

eTextbook
US$74.00
Paperback
US$74.00

Have an access code?

To redeem an access code, please log in with your personal login.

If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.

Also available to purchase from these educational ebook suppliers