infer icon indicating copy to clipboard operation
infer copied to clipboard

Better handling of unix file types

Open markus-bauer opened this issue 1 year ago • 0 comments

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

  1. Directories produce an error, whereas file reports inode/directory.

  2. For other special unix files, file reports inode/chardevice, inode/fifo, etc.

  3. Infer is blocking/waiting, when get_from_path is called with the path to a special file, like a fifo, or /dev/tty.

markus-bauer avatar Dec 19 '23 12:12 markus-bauer