Only update directory listing if the cloud upload was successful.