File-Manager icon indicating copy to clipboard operation
File-Manager copied to clipboard

Preserve timestamps when decompressing folders

Open terofeev opened this issue 8 months ago • 0 comments

Checklist

  • [x] I can reproduce the bug with the latest version given here.
  • [x] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [x] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • [x] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • [x] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [x] This issue contains only one bug.
  • [x] I have read and understood the contribution guidelines.

Affected app version

1.1.0

Affected Android/Custom ROM version

Android 15

Affected device model

Nothing phone (1)

How did you install the app?

Built from source

Steps to reproduce the bug

  1. Click on a ZIP file in the Files tab
  2. Click the Decompress icon in the action menu
  3. Press OK on the "Select a folder" dialog

Expected behavior

Folders retain their original timestamps.

Actual behavior

Folders have newly created timestamps instead of the original ones.

Screenshots/Screen recordings

No response

Additional information

Pay attention to the following:

  • If a file is located in multiple nested folders, timestamps should be updated recursively. The current logic skips nested folders.
  • The logic in DecompressActivity completely skips empty folders.

Related to:

  • https://github.com/FossifyOrg/File-Manager/pull/178#issuecomment-2896461965
  • https://github.com/FossifyOrg/File-Manager/pull/178#issuecomment-2906914424

terofeev avatar May 25 '25 09:05 terofeev