Quantcast
Viewing all articles
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: Prasad's change worked for me!

Viewing all articles
Browse latest Browse all 15

Trending Articles



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