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.
get-stream-filename(stream:stream, default:string="") -> string |
Name |
Type |
Description |
---|---|---|
stream |
stream |
Specifies the input stream. |
default |
string |
Specifies the default value to return. By default, this is an empty string. |