|
|
@@ -135,7 +135,7 @@ FileAndSumList Engine::ListFiles(const std::string& root, const std::deque<std::
|
|
|
const std::string path = BuildCurrentDirPath(root, wd);
|
|
|
Crypto cryptoEngine;
|
|
|
|
|
|
- std::filesystem::directory_iterator directoryIterator;
|
|
|
+ std::filesystem::directory_iterator directoryIterator; // FIXME error handling
|
|
|
try
|
|
|
{
|
|
|
directoryIterator = std::filesystem::directory_iterator(path);
|
|
|
@@ -237,7 +237,7 @@ size_t Engine::CountFilesRecur()
|
|
|
|
|
|
do
|
|
|
{
|
|
|
- std::filesystem::directory_iterator directoryIterator;
|
|
|
+ std::filesystem::directory_iterator directoryIterator; // FIXME error handling
|
|
|
try
|
|
|
{
|
|
|
directoryIterator = std::filesystem::directory_iterator(itemsToDo.front());
|
|
|
@@ -289,18 +289,18 @@ void Engine::DirExistsOrThrow() const
|
|
|
void Engine::RemoveFiles(const std::vector<std::string>& paths) const
|
|
|
{
|
|
|
for (const std::string& path: paths)
|
|
|
- std::filesystem::remove(path);
|
|
|
+ std::filesystem::remove(path); // FIXME error handling
|
|
|
}
|
|
|
|
|
|
void Engine::RemoveDirs(const std::vector<std::string>& paths) const
|
|
|
{
|
|
|
for (const std::string& path : paths)
|
|
|
- std::filesystem::remove_all(path);
|
|
|
+ std::filesystem::remove_all(path); // FIXME error handling
|
|
|
}
|
|
|
|
|
|
void Engine::CopyItem(const IEngine::CopyInstruction& item) const
|
|
|
{
|
|
|
- std::filesystem::copy(item.source, item.destination, std::filesystem::copy_options::overwrite_existing | std::filesystem::copy_options::recursive);
|
|
|
+ std::filesystem::copy(item.source, item.destination, std::filesystem::copy_options::overwrite_existing | std::filesystem::copy_options::recursive); // FIXME error handling
|
|
|
}
|
|
|
|
|
|
void Engine::CopyItems(const std::vector<IEngine::CopyInstruction>& paths) const
|
|
|
@@ -320,7 +320,7 @@ bool Engine::AnyFileExists(const std::vector<std::string>& files, const std::str
|
|
|
outputPath /= file.filename();
|
|
|
if (std::filesystem::exists(outputPath))
|
|
|
{
|
|
|
- if (std::filesystem::equivalent(outputPath, file))
|
|
|
+ if (std::filesystem::equivalent(outputPath, file)) // FIXME error handling
|
|
|
throw IEngine::SameFileError();
|
|
|
return true;
|
|
|
}
|
|
|
@@ -338,7 +338,7 @@ void Engine::AddFiles(const std::vector<std::string>& files, const std::string&
|
|
|
{
|
|
|
std::filesystem::path destination(root + "/" + _destination);
|
|
|
destination /= file.filename();
|
|
|
- std::filesystem::copy(file, destination, std::filesystem::copy_options::overwrite_existing | std::filesystem::copy_options::recursive);
|
|
|
+ std::filesystem::copy(file, destination, std::filesystem::copy_options::overwrite_existing | std::filesystem::copy_options::recursive); // FIXME error handling
|
|
|
}
|
|
|
}
|
|
|
}
|