Since I have a Galaxy Nexus and a non-Galaxy non-Nexus (in this case, an
HTC Incredible S) laying around, I tried this on both:
File root = Environment.getExternalStorageDirectory();
File sub = new File(root, "a/b/c/d");
boolean res = sub.mkdirs();
The sequence completes with "res" == true on both, and all the
directories are created as expected.
The result is the same if none of the directories exist, vs. when, e.g.
only "a/b" exist and "c/d" are created.
The result is false if the entire chain of directories already exists,
as expected.
What am I doing wrong?
-- Kostya
On 03/15/2012 01:06 AM, GJTorikian wrote:
I wrote a reply to this, but I guess it was censored. I
was complaining about manufacturer fragmentation, again.
If I have a directory like this: mnt/sdcard/app/dir
mkdirs("app/dir") fails; mkdirs("app") followed by mkdirs("app/dir")
works. This is extremely unusual.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en