public static bool IsDirectory(string url)
 {
     return(AppDirectory.Exists(ConvertToAppPath(url)));
 }
        public static bool Exists(string url)
        {
            var appPath = ConvertToAppPath(url);

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