Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
Public Function CopyMediaDirectory(ByVal directorySource As String, ByVal directoryDestination As String) As String Implements IM05_PublishedOnlineCourseManager.CopyMediaDirectory Dim source As New DirectoryInfo(Server.MapPath("../" & directorySource)) Dim destination As New DirectoryInfo(Server.MapPath("../" & directoryDestination)) If Not destination.Exists Then destination.Create() End If ' Copy all files. Dim files As FileInfo() = source.GetFiles() For Each file As FileInfo In files file.CopyTo(Path.Combine(destination.FullName, file.Name)) Next ' Process subdirectories. Dim dirs As DirectoryInfo() = source.GetDirectories() For Each dir As DirectoryInfo In dirs ' Get destination directory. Dim destinationDir As String = Path.Combine(destination.FullName, dir.Name) ' Call CopyDirectory() recursively. CopyMediaDirectory(directorySource & "/" & dir.ToString(), destinationDir) Next Return "foldersComplete" End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.