Quantcast
Viewing latest article 12
Browse Latest Browse All 15

Commented Issue: Possible bug in add [8478]

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: ** Comment from web user: dblock **

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


Viewing latest article 12
Browse Latest Browse All 15

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>