Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: b5c9f62844
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (18 sloc) 0.354 kB

is_dir

{{code:php $is_dir = is_dir('/path/to/foobar'); var_export($is_dir);

//=> true

}}

{{code:ruby is_dir = File.directory?('/path/to/foobar') p is_dir

#=> true

}}

{{related: dir/chdir
filesystem/dir
filesystem/opendir
filesystem/is_file
filesystem/is_link }}

Jump to Line
Something went wrong with that request. Please try again.