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