Skip to content

Add a refresh option to update directory contents without reconnecting the device #6

@uclort

Description

@uclort

Hi, thanks for this great project.

I would like to request a refresh feature for the current directory view.

Problem

When browsing files on an Android phone from macOS using SwiftMTP, the directory contents do not update after files are added or deleted on the phone side.

For example:

  1. Connect an Android phone to the Mac
  2. Open SwiftMTP
  3. Navigate to the phone's Download directory
  4. On the phone, add or delete some files in Download
  5. Go back and enter the Download directory again in SwiftMTP

Actual Behavior

The file list in SwiftMTP is not updated. Even leaving the directory and entering it again still shows the old contents.

The only way I found to see the latest file list is to disconnect the phone and connect it again.

Expected Behavior

SwiftMTP should provide a way to refresh the current directory, or automatically reload the directory contents when entering it again.

A manual refresh button or menu item would already be very helpful.

Why this would be useful

When files are downloaded, generated, deleted, or moved directly on the phone, it is common to need the latest directory state on the Mac side. Having to disconnect and reconnect the device each time is inconvenient.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions