Skip to content

.copyTo() not working on files listed through TreeUri #31

@VladoT56

Description

@VladoT56

When you try to use .copyTo() on a file which is obtained by using .listFiles() from a DocumentFileCompat created through .fromTreeUri() you get an error: "java.lang.UnsupportedOperationException: Cannot open a stream on a tree" even when the file is not a tree (folder). This requires using the .copyFrom() or custom file copy method instead.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions