Added directory create check and handle actual directories in AWS content listing.