Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

StorePath parameter is returning error when creating identity if the directory doesnt exist #108

Open
rauljareno opened this issue May 18, 2020 · 0 comments
Labels
Milestone

Comments

@rauljareno
Copy link
Contributor

Right now, when creating an identity, if the storePath parameter doesn't exist, the method is returning an error. I suggest that the method makes the call to create the storePath directories needed in this case and that the identity is able to be created

val file = File("$storePath/alias")
if (file.exists()) {
file.deleteRecursively()
}
Iden3mobile.newIdentity(
"$storePath/alias",
"password",
web3Url,
1000,
null
) { event -> print(event) }

Result -> Error "no such file or directory"
Expected -> Directories are created if needed and Identity is created and returned as result

@arnaubennassar arnaubennassar added this to the phase3 milestone Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants