Updated with total for option -l and start of reading folder
intraday pcommit
Changed error handling, implemented reading of dir. To do: get subdir list, and change the path (add /)