get-stream-filename
Returns a stream's file name with extension if the stream supplied as argument was created from a file. Otherwise, it returns the value of the default argument.
Signature
get-stream-filename(stream:stream, default:string="") -> string |
Parameters
Name | Type | Description |
---|---|---|
stream | stream | Specifies the input stream. |
default | string | Specifies the default value to return. By default, this is an empty string. |