.. # split from OEPlatformFunctions.rst:304

.. include:: ../substitutions

.. oe:namespace:: OEPlatform

.. meta::
   :keywords: OEFileTempDirectory

.. oe:function:: OEFileTempDirectory

   .. oe:api::

      std::string OEFileTempDirectory(const std::string& base_dir = "")

   Create and return the name of a new temporary directory. This
   directory is guaranteed to be unique and free of race
   conditions. If no argument is given or ``base_dir`` is an empty
   string, create the directory inside the
   :oe:func:`OEPlatform::OEFileTempPath` directory. Otherwise, create
   the directory inside ``base_dir`` given. If this function fails, an
   empty string it returned.

