.. _storage:

#######
Storage
#######

**Audience:** Users who want to share files between components.


The Lightning Storage system makes it easy to share files between LightningWork so you can run your app both locally and in the cloud without changing the code.


Lightning storage provides two solutions :class:`~lightning_app.storage.drive.Drive` and :class:`~lightning_app.storage.path.Path` to deal with files locally and in the cloud likewise.


----

.. raw:: html

    <div class="display-card-container">
        <div class="row">

.. displayitem::
   :header: Learn about the differences between Drive vs Path.
   :description: Learn about their differences.
   :col_css: col-md-4
   :button_link: differences.html
   :height: 180
   :tag: Basic

.. displayitem::
   :header: The Drive Object.
   :description: Put, List and Get Files From a Shared Drive Disk.
   :col_css: col-md-4
   :button_link: drive.html
   :height: 180
   :tag: Basic

.. displayitem::
   :header: The Path Object.
   :description: Transfer Files From One Component to Another by Reference.
   :col_css: col-md-4
   :button_link: path.html
   :height: 180
   :tag: Intermediate

.. raw:: html

        </div>
    </div>


----

********
Examples
********



.. raw:: html

    <div class="display-card-container">
        <div class="row">

.. displayitem::
   :header: Build a File Server
   :description: Learn how to use Drive to upload / download files to your app.
   :col_css: col-md-4
   :button_link: ../../examples/file_server/file_server.html
   :height: 180
   :tag: Intermediate

.. raw:: html

        </div>
    </div>
