CopyTool
2013-08-24 14:21
120 查看
using UnityEngine; using UnityEditor; using System.Collections; using System.IO; public class CopyTool : Editor { public string sourcePath = string.Empty; public string targetPath = string.Empty; public void Copy() { //Now Create all of the directories foreach (string dirPath in Directory.GetDirectories(sourcePath, "*", SearchOption.AllDirectories)) Directory.CreateDirectory(dirPath.Replace(sourcePath, targetPath)); //Copy all the files foreach (string newPath in Directory.GetFiles(sourcePath, "*.*", SearchOption.AllDirectories)) File.Copy(newPath, newPath.Replace(sourcePath, targetPath), true); Debug.Log("Copied all"); } }
相关文章推荐
- [Tool: fast copy cmd]ROBOCOPY
- CopybookTool MQ工具
- http://outofmemory.cn/code-snippet/2749/java-value-object-between-copy-tool-use-mirror-tongyong
- USB/DVD download tool 错误:we were unable to copy your files 解决办法
- unique_copy的用法
- zero copy 为什么快
- 通过spring tool 直接创建spring的配置文件
- Java中实现复制文件或文件夹——CopyUtil.java
- System.arraycopy()方法详解
- Web and php assemble json data tool method
- Warning: The Copy Bundle Resources build phase
- apktool + keytool + jarsigner
- Linux "Zero-Copy”技术 sendfile
- java keytool 使用总结(转)
- Gradle Goodness: Parse Files with SimpleTemplateEngine in Copy Task
- [iOS]NSString到底使用Copy还是使用Strong属性,有什么区别
- std::string的内存共享和Copy-On-Write技术
- COPY NAV导航网格寻路(1)
- ios 属性readwrite,readonly,assign,retain,copy,nonatomic