Feb 27, 2018

Load your directories into MySQL table

$ ls -l | grep '^d' | awk '{print $9}'| tee ~/directories.txt

mysql>load data local infile 'directories.txt' into table transit.img_directories;