I was running into an issue using Amazon S3. One folder was fine (no comparison being done), but when I had two folders, or a folder and a file, the comparison failed and the page crashed. I noticed that for folders, the file objects being pulled from S3 has date=None and filesize=None. This code will handle that situation.
I was running into an issue using Amazon S3. One folder was fine (no comparison being done), but when I had two folders, or a folder and a file, the comparison failed and the page crashed. I noticed that for folders, the file objects being pulled from S3 has date=None and filesize=None. This code will handle that situation.