コード例 #1
0
        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);
        }
コード例 #2
0
 public static bool Exists(string applicationPath)
 {
     return(Directory.Exists(AppPath.ConvertAppPathToAbsolutePath(applicationPath)));
 }
コード例 #3
0
 public static string ReadAllText(string appPath)
 {
     return(File.ReadAllText(AppPath.ConvertAppPathToAbsolutePath(appPath)));
 }
コード例 #4
0
 public static async Task <string> ReadAllTextAsync(string appPath)
 {
     return(await File.ReadAllTextAsync(AppPath.ConvertAppPathToAbsolutePath(appPath)));
 }
コード例 #5
0
 public static bool Exists(string appPath)
 {
     return(File.Exists(AppPath.ConvertAppPathToAbsolutePath(appPath)));
 }