Android Question Creating/Copying files to a hidden folder

Kwame Twum

Active Member
Licensed User
Longtime User
Hello all, I'm having problems creating a file in a hidden folder

I have created two hidden folders at runtime with the following code...
Code:
 File.MakeDir(File.DirRootExternal,"App1/.channels")  'Created successfully
File.MakeDir(File.DirRootExternal,"App1/.emo")  'Created successfully

I then attempted to put .nomedia files in there... First one worked
Code:
 File.WriteString(File.DirRootExternal,"App1/.channels/.nomedia","")  'Created successfully

The following failed:
Code:
 File.WriteString(File.DirRootExternal,"App1/.emo/.nomedia","")  'This line fails

Log
java.io.FileNotFoundException: /storage/emulated/0/App1/.emo/.nomedia: open failed: ENOENT (No such file or directory)..

Observations:
• Issue happens in Rapid Debug mode and persists even in Release mode.

Any help is appreciated, thank you.
 
Thanks Erel, but code fails here even with
Code:
File.WriteString(File.DirRootExternal,"App1/.emo/.nomedia","ttt")
gives the same error I posted earlier.

Been wondering if emo is some sort of keyword, lol
 
Upvote 0
Back
Top