[Suggestion] Way to go off of creation date #19

Open
opened 2021-11-29 18:54:16 +10:30 by PurplePumkiin · 2 comments
PurplePumkiin commented 2021-11-29 18:54:16 +10:30 (Migrated from github.com)

I dont know if this is a feature already, but the bot uses modification date, I was wondering if it was possible to go off of creation date instead, I have a bot that downloads memes from discord servers and uploads it to mine, but the modification date is the original time, not time from download.

I dont know if this is a feature already, but the bot uses modification date, I was wondering if it was possible to go off of creation date instead, I have a bot that downloads memes from discord servers and uploads it to mine, but the modification date is the original time, not time from download.
tardisx commented 2021-12-05 13:18:40 +10:30 (Migrated from github.com)

Hi @PurplePumkiin

I've thought about this, but I'm a little wary of it, because it has some potentially surprising outcomes for users.

You mention "creation date" but that's likely to be in the past, just like modification date, for anything that gets copied in with preserved timestamps. I think you mean "exists in the directory when it did not before".

It's not impossible - I could track the files that exist in the directory on startup and only upload anything that appears afterward - would that fit your use case?

Hi @PurplePumkiin I've thought about this, but I'm a little wary of it, because it has some potentially surprising outcomes for users. You mention "creation date" but that's likely to be in the past, just like modification date, for anything that gets copied in with preserved timestamps. I think you mean "exists in the directory when it did not before". It's not impossible - I could track the files that exist in the directory on startup and only upload anything that appears afterward - would that fit your use case?
PurplePumkiin commented 2021-12-06 13:22:05 +10:30 (Migrated from github.com)

With the bot that I have running, once an image is downloaded, the modification date stands, however for me at least, the creation date is updated to when it was downloaded. Attached is an example
unknown
where the image was taken at 10:44 (modification), however I downloaded it at 8:06 (creation), now Im not very technical at all so I dont know if this is a normal circumstance, but this is my experience. However your suggestion of marking what is in the dir at startup would work

With the bot that I have running, once an image is downloaded, the modification date stands, however for me at least, the creation date is updated to when it was downloaded. Attached is an example ![unknown](https://user-images.githubusercontent.com/91154858/144779204-9aaaa823-b503-4618-8977-8c29664ab3ec.png) where the image was taken at 10:44 (modification), however I downloaded it at 8:06 (creation), now Im not very technical at all so I dont know if this is a normal circumstance, but this is my experience. However your suggestion of marking what is in the dir at startup would work
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: justin/discord-auto-upload#19
No description provided.