zoukankan      html  css  js  c++  java
  • c# 文件夾操作

     #region 圖片對應異動
               string newFilePath = "~/FileUpLoad/Book/" + bookModel.BookNo;
               if (!Directory.Exists(Server.MapPath(filePath)))
               {
                   System.IO.Directory.CreateDirectory(Server.MapPath(filePath));
               }
               if (Directory.Exists(Server.MapPath(newFilePath)))
               {
                   System.IO.Directory.Delete(Server.MapPath(filePath));
               }
               //修改文件夹名称
               System.IO.Directory.Move(Server.MapPath(filePath), Server.MapPath(newFilePath));
               #endregion

  • 相关阅读:
    合并两个有序链表
    有效括号方法二
    有效括号
    es6 中的模块化
    XMLHttpRequest 对象
    AST
    php读写文件方式
    vue开发中遇到的问题
    sublime操作
    cmd命令
  • 原文地址:https://www.cnblogs.com/qhy1277/p/4686212.html
Copyright © 2011-2022 走看看