stat.ftype â string
Instance Public methods
Identifies the type of stat. The return string is one of:
âfile
'', âdirectory
'',
âcharacterSpecial
'',
âblockSpecial
'', âfifo
'',
âlink
'', âsocket
'', or
âunknown
''.
File.stat("/dev/tty").ftype #=> "characterSpecial"
Please login to continue.