2020-01-18 05:38:21 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 05:38:21 -03:00
|
|
|
*/
|
|
|
|
|
|
2019-09-10 09:57:38 -03:00
|
|
|
#pragma once
|
2020-05-28 15:40:53 -03:00
|
|
|
|
2019-09-10 09:57:38 -03:00
|
|
|
#include <AK/String.h>
|
2020-08-17 06:30:30 -03:00
|
|
|
#include <LibCore/Forward.h>
|
2020-09-13 16:38:44 -03:00
|
|
|
#include <LibGUI/Forward.h>
|
2020-01-30 20:08:35 -03:00
|
|
|
#include <sys/stat.h>
|
2019-09-10 09:57:38 -03:00
|
|
|
|
|
|
|
|
namespace FileUtils {
|
|
|
|
|
|
2020-12-28 12:50:51 -03:00
|
|
|
enum class FileOperation {
|
|
|
|
|
Copy = 0,
|
|
|
|
|
Cut
|
|
|
|
|
};
|
|
|
|
|
|
2020-12-28 12:29:25 -03:00
|
|
|
void delete_path(const String&, GUI::Window*);
|
2020-09-13 16:38:44 -03:00
|
|
|
void delete_paths(const Vector<String>&, bool should_confirm, GUI::Window*);
|
2019-11-21 17:43:02 -03:00
|
|
|
}
|