Returns true.

@param file  the file to check
@return true
320837
public boolean accept(File file) {
    	String name = file.getName();
    	if (file.isDirectory()) {
    		return true;
    	}
    	return (name.startsWith("theme") && name.endsWith(".properties"));	        
    }
424496
private function checkFile(string &$file): bool
    {
        $file = "{$this->directory}/{$file}";

        return file_exists($file) || (touch($file) && chmod($file, 0600));
    }
1058549
@Override
    public boolean fileDeleted(File file) {
        File output = getOutputFile(file, OUTPUT_EXTENSION);
        FileUtils.deleteQuietly(output);
        return true;
    }
939995
public static boolean tryDeleteFileOrDirectory(File file) {
    try {
      deleteFileOrDirectory(file);
      return true;
    } catch (Exception e) {
      logger.warn("Failed to delete file. file = " + file.getAbsolutePath(), e);
      return false;
    }
  }
545840
public function has($file)
    {
        $file = "/".ltrim($file,"/");
        foreach($this->nodes as $node) {
            $mount = $node->getMountPoint();
            if (strncmp($mount, $file, strlen($mount)) === 0) {
                $nodefile = substr($file, strlen($mount));
                if ($node->has($nodefile)) {
                    return true;
                }
            }
        }
        return false;
    }
438277
private boolean isFile(FTPClient client, Path file) {
    try {
      return !getFileStatus(client, file).isDir();
    } catch (FileNotFoundException e) {
      return false; // file does not exist
    } catch (IOException ioe) {
      throw new FTPException("File check failed", ioe);
    }
  }
634310
public static boolean jreFile(final File file) {
        final String javaHome = System.getProperty("java.home");
        try {
            return file.getCanonicalPath().startsWith(javaHome) && file.isFile();
        } catch (final IOException ex) {
            throw new RuntimeException("Error reading canonical path for: " + file, ex);
        }
    }
672365
public final boolean isFileExcludedByExtension(@Nullable final File file) {
    return file == null || !file.isFile() || this.excludeExtensions.contains(PreprocessorUtils.getFileExtension(file));
  }
887540
public function check($file = '')
        {
            $types = $this->getAllowedMimeTypes();
            if ($types === '*') {
                return true;
            }

            // dosyanın tipini alıyoruz
            $fileMimeType = $this->getFileMimeType();
            foreach($types as $type)
            {
                 if($type === $fileMimeType){
                     return true;
                 }else{
                     continue;
                 }
            }

            return false;
        }
225566
public static boolean deleteFile(final File file) {
		// delete directory content recursively
		if (file.isDirectory()) {
			final File[] children = file.listFiles();
			for (File child : children) {
				if (!deleteFile(child)) {
					return false;
				}
			}
		}

		// delete file/empty directory
		return file.delete();
	}
1079126
public static boolean isImage( File file ){
		try {
			String mimeType = Files.probeContentType(file.toPath());
			if( mimeType == null ) {
				// In some OS there is a bug where it always returns null/
				String extension = FilenameUtils.getExtension(file.getName()).toLowerCase();
				String[] suffixes = ImageIO.getReaderFileSuffixes();
				for( String s : suffixes ) {
					if( s.equals(extension)) {
						return true;
					}
				}
			} else {
				return mimeType.startsWith("image");
			}
		} catch (IOException ignore) {}
		return false;
	}
1138260
public boolean accept(File file) {
        if (caseSensitive) {
            return file.getName().startsWith(string0);
        } else {
            return file.getName().toLowerCase().startsWith(string0.toLowerCase());
        }
    }
601285
public static boolean deleteAllIfExists(final File file) {
        if ((file == null) || !file.exists()) {
            return false;
        }

        if (file.isDirectory()) {
            final File[] files = file.listFiles();

            if (N.notNullOrEmpty(files)) {
                for (File subFile : files) {
                    if (subFile == null) {
                        continue;
                    }

                    if (subFile.isFile()) {
                        if (subFile.delete() == false) {
                            return false;
                        }
                    } else {
                        if (deleteAllIfExists(subFile) == false) {
                            return false;
                        }
                    }
                }
            }
        }

        return file.delete();
    }
704831
public static boolean string2File(File file, String data) throws IOException {
        if (!file.getParentFile().exists()) {
            file.getParentFile().mkdirs();
        }
        FileWriter writer = null;
        try {
            writer = new FileWriter(file, false);
            writer.write(data);
        } finally {
            if (writer != null) {
                writer.close();
            }
        }
        return true;
    }
252437
public boolean isNotMinified(File file) {
        return !file.getName().endsWith("min.css")
                && !file.getName().endsWith(cssMinifierSuffix + ".css");
    }
284963
public static boolean delete(final File file) {
        boolean delete = false;
        if (file != null && file.exists()) {
            // even if is a directory try to delete. maybe is empty or maybe is a *nix symbolic link
            delete = file.delete();
            if (!delete && file.isDirectory()) {
                File[] childs = file.listFiles();
                if (childs != null && childs.length > 0) {
                    for (File child : childs) {
                        delete(child);
                    }
                    // then try again as by now the directory can be empty
                    delete = file.delete();
                }
            }
        }
        return delete;
    }
743462
public boolean accept(File file) {
    Matcher m = pattern.matcher(file.getName());
    return m.matches();
  }