8 try129 {130 //Depending on whether the path is a file or directory, execute the131 //correct function.132 if ((File.GetAttributes(Path) & FileAttributes.Directory) != 0)133 {134 DirectoryInfo info = new DirectoryInfo(Path);135 CopyDirectory(info);136 }137 else138 {139 FileInfo info = new FileInfo(Path);140 CopyFile(info);141 }142 }143 finally144 {145 Progress = null;146 }147 }148149 private void