Directory contents & opening books through kindlets
Hi, does anyone have any idea how can I get the full content of the /mnt/us/documents directory? I need to get this info into a kindlet. I tried the ctx.getHomeDir, creating a File object and getting the list of files and executing ls as a Runtime Process, but every time I run into an Access Denied error message.
My second question is, if I have the location and name of a book, how can I make the kindle open it in the default viewer?
|