Android Question (ErrnoException) libcore.io.ErrnoException: open failed: EISDIR (Is a directory)

vbmundo

Well-Known Member
Licensed User
Hi,

The first thing that occurred to me is that my phone ran out of space and then the Bridge miscarried.

And then when I took a couple of applications of many megabytes achievement run the Bridge, but when trying to Write a file in my Movil I have this error.

The line code is that

B4X:
File.WriteString(Starter.Carpeta,Starter.Archivo,RegistroEncriptado)


(ErrnoException) libcore.io.ErrnoException: open failed: EISDIR (Is a directory)

I clarify that there is nothing wrong with my code ... it is the same code that always run smoothly

Regards
 
Last edited:

DonManfred

Expert
Licensed User
due to the error the destination is not a file. it is a directory.
Put some logs to see the problem (maybe one of the values does changes it´s content (wrong))
B4X:
log("Carpeta="&Starter.Carpeta)
log("Archivo="&Starter.Archivo)
log("RegistroEncriptado="&RegistroEncriptado)
File.WriteString(Starter.Carpeta,Starter.Archivo,RegistroEncriptado)
 
Last edited:
Upvote 0
Top