I develope a script who get a path, read the directory who contain pics and list and store in csv file from most old to most new. But the script only work in the same folder where place the pics but not out of the folder. Traceback say: OSERROR [2] no such directory found: 'picname.jpg' And it's related with getntime. It runs in Ubuntu 16.04 and Python 2.7, for aplication Anki2.0 It is the code;
https://github.com/Marcogb81/create-CSV-images-for-anki/blob/master/image_csv_anki.py