Hi

Debian stretch OS
KDE Desktop
Code written with Kate
Run in command line with $python getFileNames.py

Code:

from os import walk
import subprocess

f = []
x = ""
for (dirpath, dirnames, filenames) in walk('.'):
    print(filenames)

This prints [<file list>][<duplicate file list>]

What am I doing wrong or how do I remove the duplicate list.

Gary R.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to