From adad59fdba38edd077d06470fea19e5dd88bb7ed Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Fri, 8 Apr 2022 14:11:12 +0100 Subject: [PATCH] target: Add Target.makedirs(as_root=False) parameter Add as_root parameter to Target.makedirs() --- devlib/target.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devlib/target.py b/devlib/target.py index ac706c0..2ad3c38 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -927,8 +927,8 @@ fi # files - def makedirs(self, path): - self.execute('mkdir -p {}'.format(quote(path))) + def makedirs(self, path, as_root=False): + self.execute('mkdir -p {}'.format(quote(path)), as_root=as_root) def file_exists(self, filepath): command = 'if [ -e {} ]; then echo 1; else echo 0; fi'