Exemplo n.º 1
0
        public void createDir(string parentPath)
        {
            string path = "";

            //path = ExportUtil.getDataPath(string.Format("{0}/{1}", parentPath, m_subPath));
            path = ExportUtil.getDataPath(m_subPath);
            if (!UtilPath.existDirectory(path))
            {
                UtilPath.recurseCreateDirectory(path);
            }
        }
        // 创建所需要的所有的子目录
        protected void createSubDir()
        {
            if (!string.IsNullOrEmpty(m_assetOutPath))
            {
                string path = "";
                path = ExportUtil.getWorkPath(m_assetOutPath);
                if (!UtilPath.existDirectory(path))
                {
                    UtilPath.recurseCreateDirectory(path);
                }
            }

            if (!string.IsNullOrEmpty(m_controllerOutPath))
            {
                string path = "";
                path = ExportUtil.getWorkPath(m_controllerOutPath);
                if (!UtilPath.existDirectory(path))
                {
                    UtilPath.recurseCreateDirectory(path);
                }
            }
        }