mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 05:20:38 +00:00
d01addc625
Co-authored-by: Rodactor <rodactor@roblox.com>
14 lines
548 B
C++
14 lines
548 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
#include <functional>
|
|
|
|
std::optional<std::string> readFile(const std::string& name);
|
|
|
|
bool isDirectory(const std::string& path);
|
|
bool traverseDirectory(const std::string& path, const std::function<void(const std::string& name)>& callback);
|
|
|
|
std::string joinPaths(const std::string& lhs, const std::string& rhs);
|
|
std::optional<std::string> getParentPath(const std::string& path);
|