Create new file in the current directory

This commit is contained in:
Matéo Duparc 2021-06-26 14:08:54 +02:00
parent 286253c542
commit cffc24e4ba
Signed by: hardcoresushi
GPG Key ID: 007F84120107191E
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,8 @@ class ExplorerActivity : BaseExplorerActivity() {
if (fileName.isEmpty()) {
Toast.makeText(this, R.string.error_filename_empty, Toast.LENGTH_SHORT).show()
} else {
val handleID = gocryptfsVolume.openWriteMode(fileName) //don't check overwrite because openWriteMode open in read-write (doesn't erase content)
val filePath = PathUtils.pathJoin(currentDirectoryPath, fileName)
val handleID = gocryptfsVolume.openWriteMode(filePath) //don't check overwrite because openWriteMode open in read-write (doesn't erase content)
if (handleID == -1) {
ColoredAlertDialogBuilder(this)
.setTitle(R.string.error)