FileManager: Use TRY in run_file_operation()

The exception is `execvp()` since that has no Core::System wrapper yet.
This commit is contained in:
Sam Atkins 2022-03-12 12:44:37 +00:00 committed by Andreas Kling
commit dc5a318aa9
Notes: sideshowbarker 2024-07-17 17:28:32 +09:00
4 changed files with 23 additions and 34 deletions

View file

@ -1,6 +1,6 @@
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
* Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -21,5 +21,5 @@ enum class FileOperation {
void delete_paths(Vector<String> const&, bool should_confirm, GUI::Window*);
void run_file_operation(FileOperation, Vector<String> const& sources, String const& destination, GUI::Window*);
ErrorOr<void> run_file_operation(FileOperation, Vector<String> const& sources, String const& destination, GUI::Window*);
}