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, "dir2");
   if(subdir.exists())
   {
        subdir.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 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