Ares-Defence-Labs/KmpEssentials

[Bug] [Files] [Android] Creating files in new directories not working.

Monabr opened this issue · 1 comments

Describe the bug
Can't create directory and file using this library

To Reproduce
Try to create files like that:

  1. KmpFileSystem.createDirectNameAtAppStorage(KmpFileSystem.getAppDirectory() + "/files/custom")
  2. KmpFileSystem.createFileAt(KmpFileSystem.getAppDirectory() + "/files/custom/myfile.txt)

Expected behavior
Directory "custom" is created

Additional context
I am using version 1.5.7

The problem is that you are not using .mkdir() or .mkdirs() to create directory so they are not created.

I was not using this right. The right usage is

KmpFileSystem.createDirectNameAtAppStorage("custom")