title: databricks with python can't use fs module AttributeError: module 'dbutils' has no attribute 'fs'
body: <p>I am using azure databricks for the first time to read some files and trying to use python with dbutils.fs.ls("/mnt")</p>
  
  <p>But I get an error saying that dbutils doesn't have fs module. I was reading and say that all databricks come with dbutils already.</p>
  
  <pre><code>AttributeError: module 'dbutils' has no attribute 'fs'
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/bnD7h.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bnD7h.jpg" alt="enter image description here"></a></p>
  
  <p>if i do </p>
  
  <pre><code>print(dir(dbutils))
  </code></pre>
  
  <blockquote>
    <p>['Console', 'DBUtils', 'FileInfo', 'Iterable', 'ListConverter', 'MapConverter', 'MountInfo', 'NotebookExit', 'Py4JJavaError', 'SecretMetadata', 'SecretScope', 'WidgetsHandlerImpl', '<strong>builtins</strong>', '<strong>cached</strong>', '<strong>doc</strong>', '<strong>file</strong>', '<strong>loader</strong>', '<strong>name</strong>', '<strong>package</strong>', '<strong>spec</strong>', 'absolute_import', 'makeTensorboardManager', 'namedtuple', 'print_function', 'range', 'stderr', 'stdout', 'string_types', 'sys', 'zip']</p>
  </blockquote>
  
  <p>i found that it suppose to have the library already install
  <a href="https://docs.databricks.com/user-guide/dev-tools/dbutils.html#dbutils" rel="nofollow noreferrer">https://docs.databricks.com/user-guide/dev-tools/dbutils.html#dbutils</a></p>
  
  <p>Is there a magic trick? I wanted to check if I have a file is mounted if not mount it and unmount it.</p>