Skip to content

Preserve timestamps when decompressing folders #190

@terofeev

Description

@terofeev

Checklist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions