FileUtilities.h 993 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. /*
  3. * Copyright (c) Contributors to the Open 3D Engine Project.
  4. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. *
  6. * SPDX-License-Identifier: Apache-2.0 OR MIT
  7. *
  8. */
  9. #include <AzCore/std/string/string.h>
  10. #include <SceneAPI/SceneCore/SceneCoreConfiguration.h>
  11. namespace AZ
  12. {
  13. namespace SceneAPI
  14. {
  15. namespace Utilities
  16. {
  17. class FileUtilities
  18. {
  19. public:
  20. SCENE_CORE_API static AZStd::string CreateOutputFileName(
  21. const AZStd::string& groupName, const AZStd::string& outputDirectory, const AZStd::string& extension,
  22. const AZStd::string& sourceFileExtension);
  23. SCENE_CORE_API static bool EnsureTargetFolderExists(const AZStd::string& path);
  24. SCENE_CORE_API static AZStd::string GetRelativePath(const AZStd::string& path, const AZStd::string& rootPath);
  25. };
  26. }
  27. }
  28. }