summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/sysrestore.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipapython/sysrestore.py b/ipapython/sysrestore.py
index d3c7a5017..cad6c91f9 100644
--- a/ipapython/sysrestore.py
+++ b/ipapython/sysrestore.py
@@ -203,6 +203,14 @@ class FileStore:
return True
+ def has_files(self):
+ """Return True or False if there are any files in the index
+
+ Can be used to determine if a program is configured.
+ """
+
+ return len(self.files) > 0
+
class StateFile:
"""A metadata file for recording system state which can
be backed up and later restored. The format is something