blob: ffe0acffb60e75c8e9856168504c518eb7bfb1be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#ifndef __DIR_UTIL_H__
#define __DIR_UTIL_H__
#include <cstdint>
#include "pal.h"
namespace bundle
{
class dir_utils_t
{
public:
static bool has_dirs_in_path(const pal::string_t &path);
static void remove_directory_tree(const pal::string_t &path);
static void create_directory_tree(const pal::string_t &path);
static void fixup_path_separator(pal::string_t& path);
static bool rename_with_retries(pal::string_t& old_name, pal::string_t& new_name, bool &new_dir_exists);
};
}
#endif // __DIR_UTIL_H__
|