mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
FileManager: Use TRY in run_file_operation()
The exception is `execvp()` since that has no Core::System wrapper yet.
This commit is contained in:
parent
6a23dfbc92
commit
dc5a318aa9
4 changed files with 23 additions and 34 deletions
|
@ -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*);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue