diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-10-31 12:54:44 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-10-31 12:54:44 +0200 |
| commit | ebdae96290085483d2b5aeaf56c0bdeaaffd95ea (patch) | |
| tree | 010fdf909fdad9152ad2befe9f1a42fa721f9f0d /Software/Tango.NET/Tango.Core/PathHelper.cs | |
| parent | 4fbe47ccac2bdcae52aafa07d6a80176e9606bd9 (diff) | |
| download | Tango-ebdae96290085483d2b5aeaf56c0bdeaaffd95ea.tar.gz Tango-ebdae96290085483d2b5aeaf56c0bdeaaffd95ea.zip | |
Change Tango.NET to Visual Studio
Diffstat (limited to 'Software/Tango.NET/Tango.Core/PathHelper.cs')
| -rw-r--r-- | Software/Tango.NET/Tango.Core/PathHelper.cs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Software/Tango.NET/Tango.Core/PathHelper.cs b/Software/Tango.NET/Tango.Core/PathHelper.cs deleted file mode 100644 index 08dbf1c16..000000000 --- a/Software/Tango.NET/Tango.Core/PathHelper.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Tango.Core -{ - public static class PathHelper - { - public static String GetTempFolderPath() - { - String tempDirectory = Path.Combine(Path.GetTempPath(), "Twine", Path.GetRandomFileName()); - Directory.CreateDirectory(tempDirectory); - return tempDirectory; - } - - public static bool TryDeleteFolder(String path) - { - try - { - Directory.Delete(path, true); - return true; - } - catch - { - return false; - } - } - } -} |
