streamlet-examples/mime_type
branchv_0
changeset 50 22ed5647b235
parent 49 ab48ad4ecb91
equal deleted inserted replaced
49:ab48ad4ecb91 50:22ed5647b235
    18 
    18 
    19 # This streamlet provides a single attribute: MIME type of given file.
    19 # This streamlet provides a single attribute: MIME type of given file.
    20 # It calls the tool file.
    20 # It calls the tool file.
    21 
    21 
    22 
    22 
    23 . "$(dirname "$0")/streamlet-common.sh"
    23 . "$(dirname "$(realpath "$0")")/streamlet-common.sh"
    24 
    24 
    25 processMessage_WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA() {
    25 processMessage_WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA() {
    26 	send OUTPUT_ATTRIBUTE_METADATA "${outputAttributeAliases[0]-mime_type}"    "string"
    26 	send OUTPUT_ATTRIBUTE_METADATA "${outputAttributeAliases[0]-mime_type}"    "string"
    27 	send WAITING_FOR_INPUT_ATTRIBUTES
    27 	send WAITING_FOR_INPUT_ATTRIBUTES
    28 }
    28 }