Skip to content Skip to sidebar Skip to footer

Read Filename From Every Subfolder In Ftp And Save Them In A List - How To Speed Up Execution Time In Python

I have a working version of Python code, it reads files from each subfolder and save them into a list, however, there are quite a lot of files so the code takes a very long time to

Solution 1:

Move the login outside the for loop - that is likely to be the one of the culprits. However, like any performance problem measure where the time is taken up. Some things you cannot change like the time for a directory listing others you can.


Post a Comment for "Read Filename From Every Subfolder In Ftp And Save Them In A List - How To Speed Up Execution Time In Python"