Example #1
0
        public static string[] GetDirectories(string url)
        {
            var dirs = AppDirectory.GetDirectories(ConvertToAppPath(url));

            var c = dirs.Length;

            for (var i = 0; i < c; i++)
            {
                dirs[i] = ConvertAppPathToUrl(dirs[i]);
            }

            return(dirs);
        }
Example #2
0
 public static string[] GetFiles(string url, string searchPattern = "*.*", SearchOption searchOption = SearchOption.TopDirectoryOnly)
 {
     return(AppDirectory.GetFiles(ConvertToAppPath(url), searchPattern, searchOption));
 }
Example #3
0
 public static bool IsDirectory(string url)
 {
     return(AppDirectory.Exists(ConvertToAppPath(url)));
 }
Example #4
0
        public static bool Exists(string url)
        {
            var appPath = ConvertToAppPath(url);

            return(AppFile.Exists(appPath) || AppDirectory.Exists(appPath));
        }