Remove an erroneous check on directory moves (#693)

This commit is contained in:
Fabian Henneke 2020-04-08 14:55:44 +02:00 committed by GitHub
parent b78f70700c
commit 2738d7500f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -657,7 +657,6 @@ class PasswordStore : AppCompatActivity() {
.show() .show()
} }
val sourceDestinationMap = if (source.isDirectory) { val sourceDestinationMap = if (source.isDirectory) {
check(destinationFile.isDirectory) { "Moving a directory to a file" }
// Recursively list all files (not directories) below `source`, then // Recursively list all files (not directories) below `source`, then
// obtain the corresponding target file by resolving the relative path // obtain the corresponding target file by resolving the relative path
// starting at the destination folder. // starting at the destination folder.