Create a function called getfilelist that take one argument


Problem

Create a function called getFileList that will take one argument which is the path of a folder (I can pass any folder's paths to test it). The function should use os.popen to get a list of files on the path (passed as argument). You can treat the subfolders at the path as files. You do not have to separate files and folders.

Parse the output of os.popen() and make a list of the files returned by os.popen()
The function getFileList should return a list of filenames.

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Create a function called getfilelist that take one argument
Reference No:- TGS03323557

Expected delivery within 24 Hours