refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2025-04-04 21:47:42 -05:00
parent d8b476e80a
commit 47dea2cc38

View File

@ -1433,12 +1433,12 @@ auto remote_server::winfsp_rename(PVOID /*file_desc*/, PWSTR file_name,
-> packet::error_type {
REPERTORY_USES_FUNCTION_NAME();
const auto relative_path = utils::string::to_utf8(file_name);
const auto file_path = construct_path(relative_path);
const auto new_relative_path = utils::string::to_utf8(new_file_name);
const auto new_file_path = construct_path(new_relative_path);
auto relative_path = utils::string::to_utf8(file_name);
auto file_path = construct_path(relative_path);
auto new_relative_path = utils::string::to_utf8(new_file_name);
auto new_file_path = construct_path(new_relative_path);
auto res = -1;
auto res{-1};
errno = ENOENT;
if (utils::file::file(file_path).exists()) {
res = drive_.rename_file(construct_api_path(file_path),