CSharpUtils.VirtualFileSystem.Utils.Synchronizer.CopyFile C# (CSharp) Method

CopyFile() protected method

protected CopyFile ( String PathFileName ) : void
PathFileName String
return void
		protected void CopyFile(String PathFileName)
		{
			using (var SourceStream = SourceFileSystem.OpenFile(FileSystem.CombinePath(DestinationPath, PathFileName), FileMode.Open))
			using (var DestinationStream = DestinationFileSystem.OpenFile(FileSystem.CombinePath(DestinationPath, PathFileName), FileMode.Create))
			{
				SourceStream.CopyToFast(DestinationStream);
			}
		}