Once programmers start to manipulate files and directories in more sophisticated ways, there comes a point when it makes sense to stop using shell scripts and start doing it with programming languages that have more sophisticated control constructs and data structures.

  • Programs can open and read directories to find out what files those directories contain.
  • They can work recursively on the contents of nested directories by walking the directory tree.

Browsing Directories

Browsing Directories Using walk

Querying Directory Contents

Directory and File Paths

Manipulating Files and Directories

comments powered by Disqus