infer
infer copied to clipboard
Better handling of unix file types
I'm going to refer to file
(https://www.darwinsys.com/file/) as a reference.
See also: https://en.wikipedia.org/wiki/File_(command)#Specification
I'm using infer like this:
infer::get_from_path(path_to_a_file);
Issues
-
Directories produce an error, whereas
file
reportsinode/directory
. -
For other special unix files,
file
reportsinode/chardevice
,inode/fifo
, etc. -
Infer is blocking/waiting, when
get_from_path
is called with the path to a special file, like a fifo, or/dev/tty
.