34 lines
799 B
C#
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;
|
|
}
|
|
|
|
}
|
|
|
|
}
|