You get the file list by calling filelist=os.listdir(path)
, which returns the files in some random order (how they are ordered in the file system). See this topic about how to do it correctly:
You get the file list by calling filelist=os.listdir(path)
, which returns the files in some random order (how they are ordered in the file system). See this topic about how to do it correctly: