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)));
 }
Example #3
0
 public static async Task <string> ReadAllTextAsync(string appPath)
 {
     return(await File.ReadAllTextAsync(AppPath.ConvertAppPathToAbsolutePath(appPath)));
 }
Example #4
0
 public static string ReadAllText(string appPath)
 {
     return(File.ReadAllText(AppPath.ConvertAppPathToAbsolutePath(appPath)));
 }
Example #5
0
 public static bool Exists(string appPath)
 {
     return(File.Exists(AppPath.ConvertAppPathToAbsolutePath(appPath)));
 }
Example #6
0
 public static string ConvertToAbsolutePath(string url)
 {
     return(AppPath.Join(App.RootPath, ConvertToAppPath(url)));
 }
Example #7
0
 public static string ConvertToAppPath(string url)
 {
     return(AppPath.Join(GeneralSettings.WebRootPath, ConvertToActualUrl(url)));
 }