MaddTheSane / Simple-Comic

macOS comic viewer
MIT License
255 stars 22 forks source link

Modify date - Question #116

Closed abillauer closed 4 months ago

abillauer commented 5 months ago

Hi,

When I open comic files with simple comic it often changes the file modify date of the comic file. Is there a way to ensure simple comic doesn't change the files it is reading?

Thanks!

nickv2002 commented 4 months ago

I tested 5 different CBZ and CBR files and couldn't dupe this behavior with v1.9.8 Can you provide more details, examples, and version numbers to help us track this down?

abillauer commented 4 months ago

Hi, I am opening a cbz on a SMB share on a diskstation NAS. The share has read/write permissions.

You can see the before here:

Screenshot 2024-04-28 at 1 33 48 PM

and the after here:

Screenshot 2024-04-28 at 1 34 31 PM

What is interesting is that the MD5 sum of the file stays the same. I am not sure if this is a real issue or a mac/UI issue or if I am just reading this wrong.

DavidPhillipOster commented 4 months ago

That the MD5 sum of the file stays the same is a clue. If it were on a mac native file system, I'd ask you to do, on the command-line, an ls -l@ on that file, to see what kind of metadata is being stored for it. And, Command-click on the header column of the table to get a list of possible columns and enable the Date Last Opened column. It is possible that SMB accessed from macOS gets it wrong, and modifies last modified whenever it modifies the last opened value.

abillauer commented 4 months ago

It seems to be exactly that.

 ls -l@ The\ Peacemaker\ \#001\ \(1967\).cbz 
-rwx------@ 1 XXX  staff  51213225 Apr 28 13:37 The Peacemaker #001 (1967).cbz
    com.apple.lastuseddate#PS         16 
    com.apple.quarantine          30

When I copy the file locally and add all the columns the date last open updates but not the date modified.

Screenshot 2024-04-28 at 6 36 15 PM
nickv2002 commented 4 months ago

Closing as this is outside of Simple Comic's control/correct behavior.

abillauer commented 4 months ago

Thanks for all of your help! I really appreciate it!!!

On Sun, Apr 28, 2024 at 6:48 PM Nick Vance @.***> wrote:

Closing as this is outside of Simple Comic's control.

— Reply to this email directly, view it on GitHub https://github.com/MaddTheSane/Simple-Comic/issues/116#issuecomment-2081526152, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQG4DLR7OFICVTJR35RMHLY7UK3BAVCNFSM6AAAAABGO5YIDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBRGUZDMMJVGI . You are receiving this because you authored the thread.Message ID: @.***>