This function accepts the same arguments as the is_file() and is_dir() methods in this class. This also marks the follow_symlinks arguments to `is_dir()` and `is_file()` as keyword only.