Skip to content

Commit

Permalink
[hotfix][file-system] Fix copyAsync regression (expo#23892)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne authored Aug 9, 2023
1 parent 8ec56fc commit 6d72d3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ open class FileSystemModule : Module() {

AsyncFunction("copyAsync") { options: RelocatingOptions ->
val fromUri = Uri.parse(slashifyFilePath(options.from))
ensurePermission(fromUri, Permission.WRITE, "Location '$fromUri' isn't movable.")
ensurePermission(fromUri, Permission.READ, "Location '$fromUri' isn't readable.")
val toUri = Uri.parse(slashifyFilePath(options.to))
ensurePermission(toUri, Permission.WRITE)

Expand Down

0 comments on commit 6d72d3d

Please sign in to comment.