title: How to sync a folder with Amazon S3 using aws php sdk?
body: <p>I not only want to upload files to s3, but also want to remove those deleted files from s3.</p>
  
  <p>For example, I have these 2 files on s3: black.jpg, red.jpg</p>
  
  <p>I have these files in my local directory: black.jpg, green.jpg</p>
  
  <p>I want a function that will upload green.jpg to s3 and delete red.jpg from s3. Is it possible?</p>