Open TortoiseFather opened 1 year ago
This issue is similar to #8. Adding support for USB mass storage has low priority for now. In the past, I've tried to add it, but I found the complexity is extremely high. So I decided to revert the changes. It will ruin the entire code in the current project, and the regression will be insane. Why? Because:
java.lang.NoSuchMethodError
.Maintaining the compatibility for internal storage and SD card is already hard. Adding USB support will be a nightmare for me. I only maintain the repository during my spare time. I will leave this issue open until an undetermined time, or when I get enlightened.
Library version: 1.5.1 OS version: [Android 11] Device model: [Samsung Galaxy A8]
Describe the bug When invoking DocumentFileUtils.MoveFileTo targeting a folder stored on an external drive (USB SSD in my example) the movement fails.
If the target folder is an internal folder, the move succeeds
Full file permission has been granted, the external folder has been selected using OPEN_DOCUMENT_TREE
To Reproduce 1) give application full file permissions
2) select target folder using ACTION_OPEN_DOCUMENT_TREE
3) select file that will be moved
4) start background thread
5) check file can be read and location can be written to
6) DocumentFileUtils.moveFileTo([any file], this, [Folder on external drive], null, new FileCallBack(){}
Stacktrace [If applicable]