Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #983 from github-for-unity/copyhelper-fixes
Browse files Browse the repository at this point in the history
Fixing the logging of CopyHelper
  • Loading branch information
StanleyGoldman authored Dec 12, 2018
2 parents 9ada287 + 239d643 commit 1cfcaad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GitHub.Api/Installer/CopyHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static class CopyHelper

public static void Copy(NPath fromPath, NPath toPath)
{
Logger.Trace("Copying from " + fromPath + " to " + toPath + ".");
Logger.Trace("Copying from {0} to {1}", fromPath, toPath);

try
{
Expand All @@ -28,7 +28,7 @@ public static void Copy(NPath fromPath, NPath toPath)
}
catch (Exception ex2)
{
Logger.Error(ex1, "Error copying contents.");
Logger.Error(ex2, "Error copying contents.");
throw;
}
}
Expand All @@ -39,15 +39,15 @@ public static void Copy(NPath fromPath, NPath toPath)
}
public static void CopyFolder(NPath fromPath, NPath toPath)
{
Logger.Trace("CopyFolder fromPath: {0} toPath:{1}", fromPath.ToString(), toPath.ToString());
Logger.Trace("CopyFolder from {0} to {1}", fromPath, toPath);
toPath.DeleteIfExists();
toPath.EnsureParentDirectoryExists();
fromPath.Move(toPath);
}

public static void CopyFolderContents(NPath fromPath, NPath toPath)
{
Logger.Trace("CopyFolder Contents fromPath: {0} toPath:{1}", fromPath.ToString(), toPath.ToString());
Logger.Trace("CopyFolderContents from {0} to {1}", fromPath, toPath);
toPath.DeleteContents();
fromPath.MoveFiles(toPath, true);
}
Expand Down

3 comments on commit 1cfcaad

@serkonda7
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What did you that the .unitypackage is placed under the 'Assets' section next to the source code?
If I include some files in a release they appear like normal text.

@StanleyGoldman
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Serkonda it's okay to open up an issue if you just have a question about our code. We will do our best to answer it, it's probably a better place to talk about things...

@StanleyGoldman
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created an issue: #993

Please sign in to comment.