public static bool IsFolder(string value, ExistentialCheckStrategy strategy = ExistentialCheckStrategy.Path)
 {
     if (strategy == ExistentialCheckStrategy.GUID)
     {
         value = AssetDatabase.GUIDToAssetPath(value);
     }
     return(Directory.Exists(value));
 }
        public static bool IsSceneFile(string value, ExistentialCheckStrategy strategy = ExistentialCheckStrategy.Path)
        {
            if (strategy == ExistentialCheckStrategy.GUID)
            {
                value = AssetDatabase.GUIDToAssetPath(value);
            }

            return(value != null && Path.GetExtension(value).Contains(".unity"));
        }
        public static bool Exists(string value, ExistentialCheckStrategy strategy = ExistentialCheckStrategy.Path)
        {
            if (strategy == ExistentialCheckStrategy.GUID)
            {
                value = AssetDatabase.GUIDToAssetPath(value);
            }
            bool existsDir  = Directory.Exists(value);
            bool existsFile = File.Exists(value);

            return(existsDir || existsFile);
        }