Question: Write a recursive function, displayFiles, that expects a pathname as an argument. The path name can be either the name of a file or the
Write a recursive function, displayFiles, that expects a pathname as an argument. The path name can be either the name of a file or the name of a directory. If the pathname refers to a file, its filepath is displayed, followed by its contents, like so:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
