In Python notebook on Azure Databricks I am running the following two commands:
import os
os.system('ls')
it returns:
Out[1]: 0
then I run magic command
%ls
and it returns list of files and folders
Why os.system('ls') does not return the same?