1
Vote

Possible bug in add

description

Hi,

I think the condition "if (! File.Exists(targetPath))" in SvnCopy.cs does not handle the directory additions. Should this condition be something like

FileAttributes attr = File.GetAttributes(targetPath)
if ((((attr & FileAttributes.Directory) != FileAttributes.Directory) && !File.Exists(targetPath)) || (((attr & FileAttributes.Directory) == FileAttributes.Directory) && !Directory.Exists(targetPath)))

Regards,
Prasad P. Khandekar

comments

dblock wrote Mar 11, 2011 at 1:33 PM

Possible. It would be good if you tested it and submitted a patch. Thx.

nsk7even wrote Aug 25, 2014 at 1:23 PM

Prasad's change worked for me!