我有一份称为card片/新夹的目录。 我想从新编目录中重新命名档案。 我遵循法典的行文,为卡片的档案工作,但不是为新的文件夹工作。
File sdcard = Environment.getExternalStorageDirectory();
File from = new File(sdcard,("a.txt"));
File to = new File(sdcard,("b.txt"));
from.renameTo(to);
can anyone help me to solve this problem. thanks in advance