blob: 965898b9b8f05f79f5a5c1d1b4ec3d28fb5c6435 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_MAC_BACKUP_UTIL_H_
#define BASE_MAC_BACKUP_UTIL_H_
#include "base/base_export.h"
namespace base {
class FilePath;
}
namespace base::mac {
// 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::mac
#endif // BASE_MAC_BACKUP_UTIL_H_