I want to get the name of a file that gets created by some other process inside a folder. It's in a path where only this file exists. It's in this path:
/directory/which/only/contains/this/one/file/
The file's full filename could then be for example:
/directory/which/only/contains/this/one/file/xZqsdtae123456.txt
How can I get the name of this file (from the example above: xZqsdtae123456.txt) and then save it in a variable ?