Closed nickperkins closed 3 years ago
The input objects to Filter are the same object returned by listObjectV2: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#listObjectsV2-property
The Doc claims LastModified is a Date:
Key — (String) The name that you assign to an object. You use the object key to retrieve the object.
LastModified — (Date) Creation date of the object.
ETag — (String) The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:
Size — (Integer) Size in bytes of the object
StorageClass — (String) The class of storage used to store the object. Possible values include:
Owner — (map) The owner of the object
I'd love to use a filter on a
ls
to get files created after x date. Some documentation on what data types is provided to the js function would be great. For example, I'm guessingLastModified
is probably a string so needs to be converted to a date for comparing with greater/less than.