diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-05-24 15:54:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-24 15:54:20 -0400 |
| commit | 9bad9d76018f344ba4f56c838712a8496977de53 (patch) | |
| tree | 89fed4ddcd38bc2d26deef3ef0b89dc3411e3f6b /src/Emby.Server/ApplicationPathHelper.cs | |
| parent | 51088d6a250ec5ad4bcd8eb55693f17bda0a3df8 (diff) | |
| parent | fbbb50496ab42e297c1862cbe6395a47582eab97 (diff) | |
Merge pull request #2660 from MediaBrowser/dev
removed dead files
Diffstat (limited to 'src/Emby.Server/ApplicationPathHelper.cs')
| -rw-r--r-- | src/Emby.Server/ApplicationPathHelper.cs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/Emby.Server/ApplicationPathHelper.cs b/src/Emby.Server/ApplicationPathHelper.cs deleted file mode 100644 index c611ff372..000000000 --- a/src/Emby.Server/ApplicationPathHelper.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; - -namespace Emby.Server -{ - public class ApplicationPathHelper - { - public static string GetProgramDataPath(string appDirectory) - { - var useDebugPath = false; - -#if DEBUG - useDebugPath = true; -#endif - - var programDataPath = useDebugPath ? - "programdata" : - "programdata"; - - programDataPath = programDataPath - .Replace('/', Path.DirectorySeparatorChar) - .Replace('\\', Path.DirectorySeparatorChar); - - // If it's a relative path, e.g. "..\" - if (!Path.IsPathRooted(programDataPath)) - { - programDataPath = Path.Combine(appDirectory, programDataPath); - - programDataPath = Path.GetFullPath(programDataPath); - } - - Directory.CreateDirectory(programDataPath); - - return programDataPath; - } - } -} |
