/ Published in: VB.NET
Expand |
Embed | Plain Text
''' <summary> ''' Copies folder ''' </summary> ''' <param name="_srcPath">Source folder to copy</param> ''' <param name="_destPath">Target folder</param> ''' <remarks></remarks> Public Shared Sub CopyDir(ByVal _srcPath As String, ByVal _destPath As String) If Not Directory.Exists(_destPath) Then Directory.CreateDirectory(_destPath) End If 'Sub directories If Directory.Exists(element) Then CopyDir(element, Path.Combine(_destPath, Path.GetFileName(element))) Else 'Files End If Next End Sub
You need to login to post a comment.
