Hello,
     I have some questions.
(1)
     I want to remove a directory on filesystem, it is successful but
some logs info was printed: unable to unlink "/data/data/packageName/
dir1/dir2".  there are no any file in dir2.

    my codes:

    File dir = getFileStreamPath("dir1");
    File subdir=new File(dir, "dir1");
    if(!subdir.exists())
    {
         dir1.delete();
    }

(2)
    If there are some files in dir2, can I remove the whole directory?

   thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to