filepath='xdc/xdef/xe'rmdir(filepath)
报如下错误 大概率是因为没有操作权限,所以使用下面的代码即可:
filepath='xdc/xdef/xe';rmdir(filepath,'s’);
注意,s慎用,确认自己真的要删除某个文件之后再用s删除。