skeleton of a share and scan function
cleanup temporary path
extract required information for each file