I am using a Samsung NEXUS with Android 4.2.1. Today I deleted a folder that was created by an app that I developed. The app has been working fine until this for months. I manually deleted the folder (through ES3 file explorer app) for testing something. This did not give any error messages from Android and I thought it worked like any delete. However, I am not able to create THIS folder manually or through code anymore. Any other folder can be created and deleted either way.
File f = new File(Environment.getExternalStorageDirectory(), "myfolder");
System.out.println(f.mkdirs());
System.out.println(f.exists());
Both prints false.
Through the adb shell
tried the following.
mkdir myfolder
mkdir failed for myfolder, File exists
However ls
does not list myfolder
rmdir myfolder
rmdir failed for myfolder, No such file or directory
Any idea why this is happening or the way out would be highly appreciated.
Thanks in Advance.