public static string[] GetDirectories(string applicationPath) { var paths = Directory.GetDirectories(AppPath.ConvertAppPathToAbsolutePath(applicationPath)); for (var i = 0; i < paths.Length; i++) { paths[i] = AppPath.ConvertAbsolutePathToAppPath(paths[i].Replace('\\', '/')); } return(paths); }
public static bool Exists(string applicationPath) { return(Directory.Exists(AppPath.ConvertAppPathToAbsolutePath(applicationPath))); }
public static async Task <string> ReadAllTextAsync(string appPath) { return(await File.ReadAllTextAsync(AppPath.ConvertAppPathToAbsolutePath(appPath))); }
public static string ReadAllText(string appPath) { return(File.ReadAllText(AppPath.ConvertAppPathToAbsolutePath(appPath))); }
public static bool Exists(string appPath) { return(File.Exists(AppPath.ConvertAppPathToAbsolutePath(appPath))); }
public static string ConvertToAbsolutePath(string url) { return(AppPath.Join(App.RootPath, ConvertToAppPath(url))); }
public static string ConvertToAppPath(string url) { return(AppPath.Join(GeneralSettings.WebRootPath, ConvertToActualUrl(url))); }