This commit is contained in:
parent
2fb53e34af
commit
32ef8ba3c3
@ -557,7 +557,8 @@ auto get_free_drive_space(std::string_view path)
|
||||
throw utils::error::create_exception({
|
||||
function_name,
|
||||
"failed to validate path",
|
||||
"parent paths are not the same" smb_path,
|
||||
"parent paths are not the same",
|
||||
smb_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,
|
||||
std::string_view password) -> std::string {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
if (not validate_smb_path(smb_path)) {
|
||||
throw utils::error::create_exception({
|
||||
function_name,
|
||||
|
@ -25,6 +25,8 @@
|
||||
|
||||
#include "utils/common.hpp"
|
||||
#include "utils/error.hpp"
|
||||
#include "utils/unix.hpp"
|
||||
#include "utils/windows.hpp"
|
||||
|
||||
namespace repertory::utils::file {
|
||||
auto smb_directory::open(std::string_view host, std::string_view user,
|
||||
|
@ -216,7 +216,8 @@ auto smb_file::move_to(std::string_view new_path) -> bool {
|
||||
throw utils::error::create_exception({
|
||||
function_name,
|
||||
"failed to connect to share",
|
||||
path_std::to_string(res),
|
||||
path_,
|
||||
std::to_string(res),
|
||||
share_name_,
|
||||
});
|
||||
}
|
||||
@ -381,7 +382,8 @@ auto smb_file::remove() -> bool {
|
||||
throw utils::error::create_exception({
|
||||
function_name,
|
||||
"failed to connect to share",
|
||||
path_std::to_string(res),
|
||||
path_,
|
||||
std::to_string(res),
|
||||
share_name_,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user