ChatGpt shows the files in the current working directory

When I type:

python get list of files in folder

ChatGPT shows the actual list of files in the current working folder instead of the python code wich I would expect

Sometimes it works as expected but we can bypass it by adding:

python get list of files in the current chatgpt folder

Also I can easely ask to show the content of any file