equal
deleted
inserted
replaced
548 Script to make a simple text version of the content |
548 Script to make a simple text version of the content |
549 --------------------------------------------------- |
549 --------------------------------------------------- |
550 |
550 |
551 $ cat << EOF >> dircontent.py |
551 $ cat << EOF >> dircontent.py |
552 > # generate a simple text view of the directory for easy comparison |
552 > # generate a simple text view of the directory for easy comparison |
553 > from __future__ import print_function |
|
554 > import os |
553 > import os |
555 > files = os.listdir('.') |
554 > files = os.listdir('.') |
556 > files.sort() |
555 > files.sort() |
557 > for filename in files: |
556 > for filename in files: |
558 > if os.path.isdir(filename): |
557 > if os.path.isdir(filename): |