1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
base / apple / backup_util.h [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_APPLE_BACKUP_UTIL_H_
#define BASE_APPLE_BACKUP_UTIL_H_
#include "base/base_export.h"
namespace base {
class FilePath;
}
namespace base::apple {
// Returns true if the file or directory at `file_path` is excluded from
// OS-managed backups.
BASE_EXPORT bool GetBackupExclusion(const FilePath& file_path);
// Excludes the file or directory given by `file_path` from OS-managed backups.
// Returns true when successful, and false when an error occurs.
BASE_EXPORT bool SetBackupExclusion(const FilePath& file_path);
// Allows the file or directory given by `file_path` to be included in
// OS-managed backups. Returns true when successful, and false when an error
// occurs.
BASE_EXPORT bool ClearBackupExclusion(const FilePath& file_path);
} // namespace base::apple
#endif // BASE_APPLE_BACKUP_UTIL_H_