init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user