/// /// 递归创建文件夹 /// /// 文件夹的路径 private static void CreateDirectory ( string directoryName ) { string sParentDirectory = Path.GetDirectoryName ( directoryName ); if ( !Directory.Exists ( sParentDirectory ) ) CreateDirectory ( sParentDirectory ); if ( !Directory.Exists ( directoryName ) ) Directory.CreateDirectory ( directoryName ); }
by: 发表于:2018-01-31 15:12:37 顶(0) | 踩(0) 回复
??
回复评论