folly/folly/io/FsUtil.cpp

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <folly/io/FsUtil.h>

#include <random>

#include <folly/Exception.h>

#ifdef __APPLE__
#include <mach-o/dyld.h> // @manual
#endif

#if defined(_WIN32)
#include <folly/portability/Windows.h>
#endif

bsys;

namespace folly {
namespace fs {

namespace {
bool skipPrefix(const path& pth, const path& prefix, path::const_iterator& it) {}
} // namespace

bool starts_with(const path& pth, const path& prefix) {}

path remove_prefix(const path& pth, const path& prefix) {}

path canonical_parent(const path& pth, const path& base) {}

path executable_path() {}

[[maybe_unused]] static constexpr char const* hex_(char) {}
[[maybe_unused]] static constexpr wchar_t const* hex_(wchar_t) {}

#if __cpp_lib_filesystem >= 201703

std_fs::path unique_path_fn::operator()(std_fs::path const& model) const {}

#endif

} // namespace fs
} // namespace folly