Java是一門強大的語言
import java
以下是遞歸函數內容:
private Boolean pDeleteDirectory(String filePath) {
Boolean bTotalRlt = true;
File file = new File(filePath);
File[] fileList = file
String dirPath = null;
if (fileList != null) {
for (int i =
if (fileList[i]
bTotalRlt = bTotalRlt && fileList[i]
}
if (fileList[i]
dirPath = fileList[i]
bTotalRlt = bTotalRlt && pDeleteDirectory(dirPath);
}
}
bTotalRlt = bTotalRlt && file
}
return bTotalRlt;
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/27065.html