I am trying to understand how all the different shopping sites might go about creating an entry of an item. I used the following code.
if you were to run this file, you would see that the only thing that shows up is a ".".
the code is also live on my website. the url to the files is here. go ahead and download them if you want or use the url to read the files on your own pc. but the content of the first file is and the image is down below. thanks for all your help and i hope I can fix this problem.
On Linux systems, each directory contains entry . which is the directory itself. Each non-root directory also has entry .. which is the parent directory. You'll need to go through the list of files and filter out these two entries. Right now you only print the first entry, which often is the . one.