2022-08-26 15:44:59 +00:00
|
|
|
// Copyright 2016 Google LLC. All rights reserved.
|
2016-10-04 22:46:02 +00:00
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
2023-08-22 01:41:18 +00:00
|
|
|
#include <filesystem>
|
2016-10-04 22:46:02 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace shaka {
|
|
|
|
|
|
|
|
/// Create a temp file name in directory @a temp_dir. Generate the temp file
|
|
|
|
/// in os specific temporary directory if @a temp_dir is empty.
|
|
|
|
/// @param temp_dir specifies the directory where the file should go.
|
|
|
|
/// @param temp_file_path is the result temp file path on success.
|
|
|
|
/// @returns true on success, false otherwise.
|
|
|
|
bool TempFilePath(const std::string& temp_dir, std::string* temp_file_path);
|
|
|
|
|
2023-08-22 01:41:18 +00:00
|
|
|
std::string MakePathRelative(const std::filesystem::path& media_path,
|
|
|
|
const std::filesystem::path& parent_path);
|
|
|
|
|
2016-10-04 22:46:02 +00:00
|
|
|
} // namespace shaka
|