Get file type : ftype « File Directory « Ruby






Get file type


File::ftype( "access.rb" ) # => "file"

 

Related examples in the same category

1.inquire about the type of a file with ftype