From 2738d7500fa0d4d925f698a04045d930c27a2d59 Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Wed, 8 Apr 2020 14:55:44 +0200 Subject: Remove an erroneous check on directory moves (#693) --- app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt index bd96528f..c665a4c2 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt @@ -657,7 +657,6 @@ class PasswordStore : AppCompatActivity() { .show() } val sourceDestinationMap = if (source.isDirectory) { - check(destinationFile.isDirectory) { "Moving a directory to a file" } // Recursively list all files (not directories) below `source`, then // obtain the corresponding target file by resolving the relative path // starting at the destination folder. -- cgit v1.2.3