12print(
'Removing %s' % path)
13cmd = [adb,
'shell',
'rm',
'-rf', path]
15subprocess.check_call(cmd)
18print(
'Checking for existence of %s' % path)
19cmd = [adb,
'shell',
'ls', path]
22 output = subprocess.check_output(
23 cmd, stderr=subprocess.STDOUT).
decode(
'utf-8')
24except subprocess.CalledProcessError
as e:
25 output = e.output.decode(
'utf-8')
30if 'No such file or directory' not in output:
31 raise Exception(
'%s exists despite being deleted' % path)
def print(*args, **kwargs)
static DecodeResult decode(std::string path)
static SkString join(const CommandLineFlags::StringArray &)