add an example to check directory
add an example to get status of file