mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
AndroidDevice: Added -rf
to delete_files
This allows it to delete folders and makes it consistend with LinuxDevice.
This commit is contained in:
parent
530714c61c
commit
0a2afdfd84
@ -342,7 +342,7 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
|
|||||||
|
|
||||||
def delete_file(self, filepath, as_root=False): # pylint: disable=W0221
|
def delete_file(self, filepath, as_root=False): # pylint: disable=W0221
|
||||||
self._check_ready()
|
self._check_ready()
|
||||||
adb_shell(self.adb_name, "rm '{}'".format(filepath), as_root=as_root, timeout=self.default_timeout)
|
adb_shell(self.adb_name, "rm -rf '{}'".format(filepath), as_root=as_root, timeout=self.default_timeout)
|
||||||
|
|
||||||
def file_exists(self, filepath):
|
def file_exists(self, filepath):
|
||||||
self._check_ready()
|
self._check_ready()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user