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'