# Files

{% hint style="success" %}
*Check out the given walk-through on how to add a file or folder and upload a file in the given Data folder provided for each Projects.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FbohA7zdtFHP5vYheyVtX%2FFiles%20Operations%20PySPark%20RSP.mp4?alt=media&token=d82d3ecb-f205-409c-9319-b305e0c0a2f8>" %}
***File Functionality***&#x20;
{% endembed %}

## Accessing the Files Tab <a href="#accessing-the-files-tab" id="accessing-the-files-tab"></a>

* Navigate to a ***Notebook*** page.
* Open the ***Files*** tab.
* A folder named ***Data*** appears by default under the Files tab.
* Click on the ***Ellipsis*** icon provided for the Data.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2F4ZtXe0T9Jzu4zK5xSRpH%2Fimage.png?alt=media&#x26;token=2fe8a23b-b069-491b-82e7-64025491553f" alt=""><figcaption></figcaption></figure>

* A context menu appears with the following options:
  * Add file
  * Add folder
  * Copy path
  * Import

![](https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2F9YO7FJTxeZBIOnhzLlE1%2Fimage.png?alt=media\&token=71d60b15-59ca-4e1b-b316-ce036281ddf5)​

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>* *The user can select any one option to insert it as a part of Files to the selected Project.*
{% endhint %}

## Various Options Provided under the Files Tab <a href="#various-options-provided-under-the-files-tab" id="various-options-provided-under-the-files-tab"></a>

### Adding a File <a href="#adding-a-file" id="adding-a-file"></a>

* Navigate to the context menu provided for the dedicated folder ***Data*** under the ***Files*** tab.
* Click the ***Add file*** option from the context menu.

&#x20;      ![](https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FhVQDccB3xQR7oV1qOxSd%2Fimage.png?alt=media\&token=fe769624-8f23-4716-822d-7bb21a8f4809)

* The ***Add file*** dialog box appears.
* Provide a name for the file.
* Click the ***Yes*** option.

&#x20;       ![](https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FMJAejVs9c9MmuoUkBsvl%2Fimage.png?alt=media\&token=edb02ebd-c722-4624-a5e3-573dc206f251)

* A notification message appears.
* The file gets added under the ***Data*** folder.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2F4eKV2Y53hnihae6gy5AQ%2Fimage.png?alt=media&#x26;token=c9a888c3-05dc-4f5f-9da1-0b34eccfb7b2" alt=""><figcaption></figcaption></figure>

### Adding Folder <a href="#adding-folder" id="adding-folder"></a>

* Navigate to the context menu provided for the dedicated folder ***Data*** under the ***Files*** tab.
* Click the ***Add folder*** option from the context menu.

&#x20;       ![](https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FDivQaFyQlzNKSzSCOODg%2Fimage.png?alt=media\&token=d37f9bf3-dae8-4ea8-938f-ac99d21f9f6f)    &#x20;

* The ***Add folder*** dialog box appears.
* Provide a name for the folder.
* Click the ***Yes*** option.

​       ![](https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FLVtGiaig7Sjz7CZRyA1h%2Fimage.png?alt=media\&token=a14624f3-da84-4f7d-a4f7-8f501971d441)

* A notification message appears.
* The folder gets added under the ***Data*** folder.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2F3slAh4fvhwUmxZdoaRid%2Fimage.png?alt=media&#x26;token=d015dc17-53c2-4835-bf36-268afc261e1c" alt=""><figcaption></figcaption></figure>

### Using the Copy path <a href="#using-the-copy-path" id="using-the-copy-path"></a>

* Navigate to the context menu provided for the dedicated folder ***Data*** under the ***Files*** tab.

OR

The user can also access the Copy Path option from an added ***File*** inside the ***Files*** option (As displayed in the given image).

* Click the ***Copy Path*** option from the context menu.
* A code cell gets an autogenerated code for the copy path. The code will contain either the project number or mention of the folder or file where it has been created together with the project number.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FX3EkosHV5WJHmOfy4Quc%2Fimage.png?alt=media&#x26;token=9d6cf2af-cb7a-4380-878e-1a06585df5dc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> The **Copy path** feature allows the user to quickly and accurately reference these files in your code, ensuring that your scripts can access the necessary data and resources.*
{% endhint %}

### Import Option <a href="#import-option" id="import-option"></a>

The **Import** option is provided to import files into the dedicated Sandbox folder (Data) inside the Data Science Notebook.

* Navigate to the context menu provided for the dedicated folder ***Data*** under the ***Files*** tab.
* Click the ***Import*** option from the context menu.

&#x20;     ![](https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2F2o0j7yp7rjeGi0NU1hUl%2Fimage.png?alt=media\&token=be3f8756-8acd-4be3-b0e8-db7b26593116)​

* Select and import a file from the system.&#x20;

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FuLW1TAxj7TS1OOjxam5L%2Fimage.png?alt=media&#x26;token=3b08008c-ead5-46c8-8320-31eccad213b0" alt=""><figcaption></figcaption></figure>

* A notification message appears.
* The selected file gets imported.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FBo4UPcKD9rgrBDuGJH3B%2Fimage.png?alt=media&#x26;token=f25711e6-cb08-4b2c-ac73-4e7921d553a7" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>* *Refer the*[ ***Data Science Lab Quick Start Flow***](https://docs.bdb.ai/data-science-lab-4/data-science-lab-quick-start-flow) *page to get an overview of the **Data Science Lab** module in nutshell.*&#x20;
{% endhint %}
