# Filesystem
{id: filesystem}


## Ruby makedir
{id: ruby-makedir}
{i: mkdir}

![](examples/files/makedir.rb)

## Ruby directory exists
{id: ruby-exists}
{i: exists}

![](examples/files/dir_exists.rb)

## Ruby write to file
{id: ruby-write-to-file}
{i: write}


![](examples/files/write_to_file.rb)

## Ruby append to file
{id: ruby-append-to-file}

![](examples/files/append_to_file.rb)
![](examples/files/append.rb)

## Ruby list files by using glob
{id: ruby-list-files-by-using-glob}
{i: glob}

![](examples/files/glob.rb)

ruby examples/files/glob.rb  "*.md"
