1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

target: Add Target.makedirs(as_root=False) parameter

Add as_root parameter to Target.makedirs()
This commit is contained in:
Douglas Raillard 2022-04-08 14:11:12 +01:00 committed by Marc Bonnici
parent 48329b7891
commit adad59fdba

View File

@ -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'