-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix path formatting + add testing video
- Loading branch information
1 parent
ac17b6a
commit 7520729
Showing
4 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Utility | ||
{ | ||
public static class PathUtil | ||
{ | ||
|
||
public static string FormatPath(string path) | ||
{ | ||
//strip first and last " if exists | ||
if (path.StartsWith("\"")) | ||
path = path.Substring(1); | ||
if (path.EndsWith("\"")) | ||
path = path.Substring(0, path.Length - 1); | ||
//strip last \ if exists | ||
if (path.EndsWith("\\")) | ||
path = path.Substring(0, path.Length - 1); | ||
return path; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.