Files
lserp_cs_5.0/插件库/Zhaizj.Framework/IO/PathTool.cs
T
2026-07-10 15:25:05 +08:00

34 lines
799 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Zhaizj.Framework.Web;
using System.Web;
namespace Zhaizj.Framework.IO {
internal abstract class PathTool {
public abstract String CombineAbs( String[] arrPath );
public abstract String Map( String path );
public static PathTool getInstance() {
if (SystemInfo.IsWindows) return new WindowsPath();
return new LinuxPath();
}
/// <summary>
/// bin 的绝对路径
/// </summary>
/// <returns></returns>
public static String GetBinDirectory() {
if (SystemInfo.IsWeb) {
return HttpRuntime.BinDirectory;
}
return AppDomain.CurrentDomain.BaseDirectory;
}
}
}