aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.posix/rename.ccm
blob: 796ec5b82e4be03b89b7ba966419197d15100f6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * This source code is released into the public domain.
 */

module;

#include <expected>
#include <filesystem>

export module nihil.posix:rename;

import nihil.error;

namespace nihil {

/*
 * Rename a file (or directory).
 */
export [[nodiscard]] auto
rename(std::filesystem::path const &oldp, std::filesystem::path const &newp)
	-> std::expected<void, error>;

} // namespace nihil