aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index d5bb3c0b..0e9e4c3d 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -502,6 +502,11 @@ class Plugin(object):
return os.path.join(self.archive.get_tmp_dir(),
'sos_commands', self.name())
+ def make_cmd_dirs(self, path):
+ """Recursively create new subdirectories under this plug-in's
+ command output path."""
+ os.makedirs(self.get_cmd_path(), path)
+
def file_grep(self, regexp, *fnames):
"""Returns lines matched in fnames, where fnames can either be
pathnames to files to grep through or open file objects to grep through