updated build system
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...

This commit is contained in:
Scott E. Graves 2024-10-19 11:33:28 -05:00
parent 2fb53e34af
commit 32ef8ba3c3
3 changed files with 10 additions and 3 deletions

View File

@ -557,7 +557,8 @@ auto get_free_drive_space(std::string_view path)
throw utils::error::create_exception({ throw utils::error::create_exception({
function_name, function_name,
"failed to validate path", "failed to validate path",
"parent paths are not the same" smb_path, "parent paths are not the same",
smb_path,
path, path,
}); });
} }
@ -691,6 +692,8 @@ auto get_free_drive_space(std::string_view path)
auto smb_get_uri_path(std::string_view smb_path, std::string_view user, auto smb_get_uri_path(std::string_view smb_path, std::string_view user,
std::string_view password) -> std::string { std::string_view password) -> std::string {
REPERTORY_USES_FUNCTION_NAME();
if (not validate_smb_path(smb_path)) { if (not validate_smb_path(smb_path)) {
throw utils::error::create_exception({ throw utils::error::create_exception({
function_name, function_name,

View File

@ -25,6 +25,8 @@
#include "utils/common.hpp" #include "utils/common.hpp"
#include "utils/error.hpp" #include "utils/error.hpp"
#include "utils/unix.hpp"
#include "utils/windows.hpp"
namespace repertory::utils::file { namespace repertory::utils::file {
auto smb_directory::open(std::string_view host, std::string_view user, auto smb_directory::open(std::string_view host, std::string_view user,

View File

@ -216,7 +216,8 @@ auto smb_file::move_to(std::string_view new_path) -> bool {
throw utils::error::create_exception({ throw utils::error::create_exception({
function_name, function_name,
"failed to connect to share", "failed to connect to share",
path_std::to_string(res), path_,
std::to_string(res),
share_name_, share_name_,
}); });
} }
@ -381,7 +382,8 @@ auto smb_file::remove() -> bool {
throw utils::error::create_exception({ throw utils::error::create_exception({
function_name, function_name,
"failed to connect to share", "failed to connect to share",
path_std::to_string(res), path_,
std::to_string(res),
share_name_, share_name_,
}); });
} }