file_type(string f) determines the type of a file and returns one of `file, `directory, `blockdev, `chardev, `fifo, `socket, `unknown or null. If the file does not exist or cannot be examined, null is returned. This function never raises an exception.
