From the cli, I use a command like this /usr/bin/aws s3 sync $LOCALPATH $REMOTEPATH --metadata-directive REPLACE --cache-control max-age=$TTL
Is there a similar command in the aws sdk php that will upload the contents of a local directory AND delete the files in the bucket that aren't present in the local directory?