Philip, it did work after all. thanks.

On Jan 16, 8:38 am, Business Talk <roman.businesst...@gmail.com>
wrote:
> Thanks Philip, you are right, It should'v been mkdirs. But even so it
> still returns false.
>
> My example was a little confusing as to the directory names; all of
> them are directories;
>
> File directory = _Context.getFileStreamPath("");
> File subdirectory = new File(directory, "subdir1/subdir2/subdir3");
> boolean result = subdirectory.mkdirs();
>
> the above code follows an example in the following posting;
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> On Jan 16, 1:19 am, Philip <philip.dese...@gmail.com> wrote:
>
>
>
> > if dir and mk don't exist, I believe that you need to use mkdirs
> > instead :
>
> > mkdirs()
> > Creates the directory named by the trailing filename of this file,
> > including the complete directory path required to create this
> > directory.
>
> > On Jan 15, 9:43 pm, Business Talk <roman.businesst...@gmail.com>
> > wrote:
>
> > > I am trying to create a directory hierarchy byt the mkdir returns
> > > false. What am I missing here?
>
> > > File directory = _Context.getFileStreamPath("");
>
> > > File subdirectory = new File(directory, "dir/mk/foo");
>
> > > boolean result = subdirectory.mkdir();- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to