public virtual bool Match(AssetImporter importer)
 {
     if (m_InUse == false)
     {
         return(false);
     }
     if (importer == null)
     {
         return(false);
     }
     return(StringLogicJudge.Judge((m_PathFilterType == PathFilterType.Path) ? importer.assetPath : Path.GetFileName(importer.assetPath), m_PathFilter));
 }
        private bool FilterAsset(string path)
        {
            if (path.EndsWith(".meta"))
            {
                return(false);
            }

            if (!string.IsNullOrEmpty(withPostfix))
            {
                string extenName = Path.GetExtension(path).ToLower();
                if (!extenName.Equals("." + withPostfix2.ToLower()))
                {
                    return(false);
                }
            }
            if (!string.IsNullOrEmpty(withBundle2))
            {
                string        assetPath = EditorUtil.PathAbsolute2Assets(path);
                AssetImporter importer  = AssetImporter.GetAtPath(assetPath);
                if (!withBundle.ToLower().Equals(importer.assetBundleName))
                {
                    return(false);
                }
            }
            if (!string.IsNullOrEmpty(pathFilter2))
            {
                string filePath = EditorUtil.PathAbsolute2Assets(path);
                filePath = Path.GetDirectoryName(filePath);
                return(StringLogicJudge.Judge(filePath.ToLower(), pathFilter2.ToLower()));
            }
            if (!string.IsNullOrEmpty(withName2))
            {
                string fileName = Path.GetFileNameWithoutExtension(path);
                if (useRegularExpression)
                {
                    return(Regex.IsMatch(fileName, @withName2));
                }
                else
                {
                    return(StringLogicJudge.Judge(fileName.ToLower(), withName2.ToLower()));
                }
            }
            return(true);
        }
 private bool FilterAsset(string path)
 {
     if (path.EndsWith(".meta"))
     {
         return(false);
     }
     if (!string.IsNullOrEmpty(withName))
     {
         string fileName = Path.GetFileName(path);
         if (useRegularExpression)
         {
             return(Regex.IsMatch(fileName, @withName));
         }
         else
         {
             return(StringLogicJudge.Judge(fileName.ToLower(), withName.ToLower()));
         }
     }
     return(true);
 }