I am trying to copy my files from main domain to sub-domain folded
i used to the code as below
CopyFiles("http://192.168.10.119:8010/1.jpg", "http://192.168.10.120:8010/TestFolder/1.jpg");
public void CopyFiles(string sourcePath, string destinationPath)
{
string[] files = System.IO.Directory.GetFiles(sourcePath);
Parallel.ForEach(files, file =>
{
System.IO.File.Copy(file, System.IO.Path.Combine(destinationPath, System.IO.Path.GetFileName(file)));
});
}
then i got a error :
URI formats are not supported.
Can any one give a solution to this issue. Thanks :)