代码如下: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace WinFormsApp_OperateFileAndFolder
{
public class OperateFileFolder
{
///
/// 创建文件夹
///
pu
我就废话不多说了,直接上代码吧!
#coding:utf-8
import os
import stat
import shutil
#filePath:文件夹路径
def delete_file(filePath):
if os.path.exists(filePath):
for fileList in os.walk(filePath):
for name in fileList[2]:
os.chmod(os.path.join(fileList[0],name