Adds a `BackupResource` abstract class to be extended by more specific resource handlers and a `BackupResources` module which resources can be registered with. The BackupResource base includes helpers to get the size of files and directories. All registed resources will be provided to the `BackupService` constructor for it instantiate them. Differential Revision: https://phabricator.services.mozilla.com/D203795
19 lines
576 B
Python
19 lines
576 B
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
with Files("**"):
|
|
BUG_COMPONENT = ("Firefox", "Profiles")
|
|
|
|
SPHINX_TREES["docs"] = "docs"
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell/xpcshell.toml"]
|
|
|
|
EXTRA_JS_MODULES.backup += [
|
|
"BackupResources.sys.mjs",
|
|
"BackupService.sys.mjs",
|
|
"resources/BackupResource.sys.mjs",
|
|
]
|