文件Copy和文件夹Copy using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //源目录 string sourceDirectory = @"E:\\Program"; //目标目录 strin…
#!/bin/usr/env python3 __author__ = 'nxz' import os import argparse MESSAGE = '%s 文件夹已经存在' def create_dir(work_dir, createdir): try: for dir in createdir: if not os.path.exists(os.path.join(work_dir, dir)): os.makedirs(os.path.join(work_dir, dir)) pr…