title: How to transfer a csv file from notebook folder to a datastore
body: <p>I want to transfer a generated csv file <code>test_df.csv</code> from my Azure ML notebook folder which has a path <code>/Users/Ankit19.Gupta/test_df.csv</code> to a datastore which has a web path <code>https://abc.blob.core.windows.net/azureml/LocalUpload/f3db18b6</code>. I have written the python code as</p>
  <pre><code>from azureml.core import Workspace
  ws = Workspace.from_config()
  datastore = ws.get_default_datastore()
      
  datastore.upload_files('/Users/Ankit19.Gupta/test_df.csv',
                    target_path='https://abc.blob.core.windows.net/azureml/LocalUpload/f3db18b6',
                    overwrite=True)
  </code></pre>
  <p>But it is showing the following error message:</p>
  <pre><code>UserErrorException: UserErrorException:
      Message: '/' does not point to a file. Please upload the file to cloud first if running in a cloud notebook.
      InnerException None
      ErrorResponse 
  {
      &quot;error&quot;: {
          &quot;code&quot;: &quot;UserError&quot;,
          &quot;message&quot;: &quot;'/' does not point to a file. Please upload the file to cloud first if running in a cloud notebook.&quot;
      }
  }
  </code></pre>
  <p>I have tried <a href="https://stackoverflow.com/questions/67897947/how-to-transfer-data-from-azure-ml-notebooks-to-a-storage-container">this</a> but it is not working for me. Can anyone please help me to resolve this issue. Any help would be appreciated.</p>