1
0
mirror of https://github.com/gryf/mc_adbfs.git synced 2025-12-18 12:00:19 +01:00

Removing quoting where it is unnecessary

This commit is contained in:
2016-06-04 16:46:06 +02:00
parent 89c783e9cd
commit d1e8f42429

7
adbfs
View File

@@ -331,7 +331,7 @@ class Adb(object):
def rm(self, dst):
"""Remove file from device."""
cmd = ["adb", "shell", "rm", pipes.quote(dst)]
cmd = ["adb", "shell", "rm", dst]
err = subprocess.check_output(cmd)
if err != "":
@@ -341,7 +341,7 @@ class Adb(object):
def rmdir(self, dst):
"""Remove directory from device."""
cmd = ["adb", "shell", "rm", "-r", pipes.quote(dst)]
cmd = ["adb", "shell", "rm", "-r", dst]
err = subprocess.check_output(cmd)
if err != "":
@@ -351,7 +351,8 @@ class Adb(object):
def mkdir(self, dst):
"""Make directory on the device through adb."""
cmd = ["adb", "shell", "mkdir", pipes.quote(dst)]
cmd = ["adb", "shell", "mkdir", dst]
err = subprocess.check_output(cmd)
if err != "":