Skip to content

Commit e121ee1

Browse files
committed
Fixed a bug when try to create a cache directory.
1 parent 7dca637 commit e121ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FlowCrypt/src/main/java/com/flowcrypt/email/api/email/sync/tasks/SendMessageSyncTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void runSMTPAction(AccountDao accountDao, Session session, Store store, S
101101
File pgpCacheDirectory = new File(context.getCacheDir(), Constants.PGP_ATTACHMENTS_CACHE_DIR);
102102
if (pgpCacheDirectory.exists()) {
103103
FileUtils.cleanDirectory(pgpCacheDirectory);
104-
} else if (!pgpCacheDirectory.mkdir()) {
104+
} else if (!pgpCacheDirectory.mkdirs()) {
105105
Log.d(TAG, "Create cache directory " + pgpCacheDirectory.getName() + " filed!");
106106
}
107107

0 commit comments

Comments
 (0)