Add Timestamp to "Read Files From Disk" Node

The idea is:

Return the timestamps a file was created or updated. Currently the “Read Files from Disk” node returns:

  • mimeType
  • fileType
  • fileName
  • fileExtension
  • fileSize

It does not return timestamps for:

  • createdAt
  • updatedAt

My use case:

I have built a simple cache with an n8n workflow for my other workflows, it works great but the it does not have an expiry date. Without a timestamp I can not find out how old the cached results are.

I think it would be beneficial to add this because:

Making API requests can be expensive, a simple read/write with a cache can reduce time and costs.

Any resources to support this?

This is my working cache (but as advised it has no expiry).

Are you willing to work on this?

I do not know where to start but will have a look.

This is a working cache, that saves a file for timestamp and checks if timestamp in saved file is an hour old.