Skip to content

Start of the project: myList.py

Samuel Price edited this page Nov 24, 2015 · 1 revision

myList.py [link] lists all top-level files or directories in the directory containing the script (in this case, our project directory) by generating an html file (list.html) displaying this information. For example, for what it contains now, by running:

python myList.py

in the project directory, a webpage will popup (pointing to list.html) that looks like this:

Example Output 1

And running this script from my home directory produces the following output:

Example Output 2.