0
如果我刪除它但不是它的內容會發生什麼目錄的內容?如果我只刪除一個目錄它的內容會發生什麼android
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
// Switch based on menu option clicked
switch (item.getItemId()) {
case R.id.context_delete:
selectedPaths = mAdapter.getCurrentPaths();
for (int i = 0; i < selectedPaths.size(); i++) {
File f = new File(selectedPaths.get(i));
f.delete();
mAdapter.remove(selectedPaths.get(i));
mAdapter.notifyDataSetChanged();
}
selectedPaths.clear();
Toast.makeText(getBaseContext(), "Delete successful", Toast.LENGTH_SHORT).show();
mode.finish(); // Action picked, so close the CAB
return true;
例如,如果此代碼在包含文件的目錄上運行,會發生什麼情況?這些文件是否也會被刪除?或者,他們被困在地獄的地方..