<commit_before>.. _files:

files
=======

Commands for Rackspace Cloud Files.

Synopsis
--------

::

   rack files <resource> <action> [command flags]

Commands
--------

``container``
~~~~~~~~~~~~~

  Files Container operations

``list``
^^^^^^^^
Usage::

    rack files container list [optional flags]

``create``
^^^^^^^^^^
Usage::

    rack files container create --name <containerName> [optional flags]
    (echo containerName1 && echo containerName2) | rack files container create --stdin name

``get``
^^^^^^^
Usage::

    rack files container get --name <containerName> [optional flags]
    (echo containerName1 && echo containerName2) | rack files container get --stdin name [optional flags]

``update``
^^^^^^^^^^
Usage::

    rack files container update --name <containerName> [optional flags]

``delete``
^^^^^^^^^^
Usage::

    rack files container delete --name <containerName> [optional flags]
    (echo containerName1 && echo containerName2) | rack files container delete --stdin name [optional flags]

``empty``
^^^^^^^^^
Usage::

    rack files container empty --name <containerName> [optional flags]
    (echo containerName1 && echo containerName2) | rack files container empty --stdin name [optional flags]

``set-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files container set-metadata --name <containerName> --metadata <metadata> [optional flags]

``get-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files container get-metadata --name <containerName> [optional flags]

``update-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files container update-metadata --name <containerName> --metadata <metadata> [optional flags]

``delete-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files container delete-metadata --name <containerName> --metadata-keys <metadataKeys> [optional flags]


``object``
~~~~~~~~~~

  Files Object operations

``list``
^^^^^^^^
Usage::

    rack files object list --container <containerName> [optional flags]
    (echo containerName1 && echo containerName2) | rack files object list --stdin container [optional flags]

``upload``
^^^^^^^^^^
Usage::

    rack files object upload --container <containerName> --name <objectName> --content <contentToUpload> [optional flags]
    rack files object upload --container <containerName> --name <objectName> --file <fileToUpload> [optional flags]
    cat fileToUpload.txt | rack files object upload --container <containerName> --name <objectName> --stdin content [optional flags]

``upload-dir``
^^^^^^^^^^^^^^

Usage::

    rack files object upload-dir --container <containerName> --dir <dirPath> [optional flags]
    find . -type d -name "something*" | rack files object upload-dir --container <containerName> --stdin dir [optional flags]

``download``
^^^^^^^^^^^^
Usage::

    rack files object download --container <containerName> --name <objectName> [optional flags]

``get``
^^^^^^^^
Usage::

    rack files object get --container <containerName> --name <objectName> [optional flags]

``delete``
^^^^^^^^^^
Usage::

    rack files object delete --container <containerName> --name <objectName> [optional flags]
    (echo objectName1 && echo objectName2) | rack files object delete --container <containerName> --stdin name [optional flags]<commit_msg>object metadata cmds docs<commit_after>.. _files:

files
=======

Commands for Rackspace Cloud Files.

Synopsis
--------

::

   rack files <resource> <action> [command flags]

Commands
--------

``container``
~~~~~~~~~~~~~

  Files Container operations

``list``
^^^^^^^^
Usage::

    rack files container list [optional flags]

``create``
^^^^^^^^^^
Usage::

    rack files container create --name <containerName> [optional flags]
    (echo containerName1 && echo containerName2) | rack files container create --stdin name

``get``
^^^^^^^
Usage::

    rack files container get --name <containerName> [optional flags]
    (echo containerName1 && echo containerName2) | rack files container get --stdin name [optional flags]

``update``
^^^^^^^^^^
Usage::

    rack files container update --name <containerName> [optional flags]

``delete``
^^^^^^^^^^
Usage::

    rack files container delete --name <containerName> [optional flags]
    (echo containerName1 && echo containerName2) | rack files container delete --stdin name [optional flags]

``empty``
^^^^^^^^^
Usage::

    rack files container empty --name <containerName> [optional flags]
    (echo containerName1 && echo containerName2) | rack files container empty --stdin name [optional flags]

``set-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files container set-metadata --name <containerName> --metadata <metadata> [optional flags]

``get-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files container get-metadata --name <containerName> [optional flags]

``update-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files container update-metadata --name <containerName> --metadata <metadata> [optional flags]

``delete-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files container delete-metadata --name <containerName> --metadata-keys <metadataKeys> [optional flags]


``object``
~~~~~~~~~~

  Files Object operations

``list``
^^^^^^^^
Usage::

    rack files object list --container <containerName> [optional flags]
    (echo containerName1 && echo containerName2) | rack files object list --stdin container [optional flags]

``upload``
^^^^^^^^^^
Usage::

    rack files object upload --container <containerName> --name <objectName> --content <contentToUpload> [optional flags]
    rack files object upload --container <containerName> --name <objectName> --file <fileToUpload> [optional flags]
    cat fileToUpload.txt | rack files object upload --container <containerName> --name <objectName> --stdin content [optional flags]

``upload-dir``
^^^^^^^^^^^^^^

Usage::

    rack files object upload-dir --container <containerName> --dir <dirPath> [optional flags]
    find . -type d -name "something*" | rack files object upload-dir --container <containerName> --stdin dir [optional flags]

``download``
^^^^^^^^^^^^
Usage::

    rack files object download --container <containerName> --name <objectName> [optional flags]

``get``
^^^^^^^^
Usage::

    rack files object get --container <containerName> --name <objectName> [optional flags]

``delete``
^^^^^^^^^^
Usage::

    rack files object delete --container <containerName> --name <objectName> [optional flags]
    (echo objectName1 && echo objectName2) | rack files object delete --container <containerName> --stdin name [optional flags]

``set-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files object set-metadata --name <objectName> --container <containerName> --metadata <metadata> [optional flags]

``get-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files object get-metadata --name <objectName> --container <containerName> [optional flags]

``update-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files object update-metadata --name <objectName> --container <containerName> --metadata <metadata> [optional flags]

``delete-metadata``
^^^^^^^^^^^^^^^^
Usage::

    rack files object delete-metadata --name <objectName> --container <containerName> --metadata-keys <metadataKeys> [optional flags]
{'fraction_non_alphanumeric': 0.18396424081575638, 'fraction_numerical': 0.003352423522838385, 'mean_word_length': 4.331347728965004, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 80, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5074352', 'n_tokens_mistral': 1937, 'n_tokens_neox': 1891, 'n_words': 682}