Przeglądaj źródła

Add system path to IApplicationPaths/BaseApplicationPaths

Eric Reed 12 lat temu
rodzic
commit
3abf1f7ed2

+ 5 - 0
MediaBrowser.Common.Implementations/BaseApplicationPaths.cs

@@ -42,6 +42,11 @@ namespace MediaBrowser.Common.Implementations
             }
         }
 
+        /// <summary>
+        /// Gets the path to the system folder
+        /// </summary>
+        public string ProgramSystemPath { get { return Path.Combine(ProgramDataPath, "System"); }}
+
         /// <summary>
         /// The _data directory
         /// </summary>

+ 6 - 0
MediaBrowser.Common/Kernel/IApplicationPaths.cs

@@ -12,6 +12,12 @@ namespace MediaBrowser.Common.Kernel
         /// <value>The program data path.</value>
         string ProgramDataPath { get; }
 
+        /// <summary>
+        /// Gets the path to the program system folder
+        /// </summary>
+        /// <value>The program data path.</value>
+        string ProgramSystemPath { get; }
+
         /// <summary>
         /// Gets the folder path to the data directory
         /// </summary>