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:
parent
48329b7891
commit
adad59fdba
@ -927,8 +927,8 @@ fi
|
|||||||
|
|
||||||
# files
|
# files
|
||||||
|
|
||||||
def makedirs(self, path):
|
def makedirs(self, path, as_root=False):
|
||||||
self.execute('mkdir -p {}'.format(quote(path)))
|
self.execute('mkdir -p {}'.format(quote(path)), as_root=as_root)
|
||||||
|
|
||||||
def file_exists(self, filepath):
|
def file_exists(self, filepath):
|
||||||
command = 'if [ -e {} ]; then echo 1; else echo 0; fi'
|
command = 'if [ -e {} ]; then echo 1; else echo 0; fi'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user