> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/c/check_that_file_exists.md).

# Check that file exists

```ruby
# Here
say (Dir.cwd  + %f'input.txt' -> is_file)
say (Dir.cwd  + %d'docs'      -> is_dir)
 
# Root
say (Dir.root + %f'input.txt' -> is_file)
say (Dir.root + %d'docs'      -> is_dir)
```

NOTE: To check only for existence, use the method *exists*
