对目录操作例子: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace DirectoryandDirectoryInfo { class Program { static void Main(string[] args) { string dirPath = "d:…