mirror of
https://github.com/gryf/mc_adbfs.git
synced 2025-12-19 12:28:15 +01:00
Removing quoting where it is unnecessary
This commit is contained in:
7
adbfs
7
adbfs
@@ -331,7 +331,7 @@ class Adb(object):
|
|||||||
|
|
||||||
def rm(self, dst):
|
def rm(self, dst):
|
||||||
"""Remove file from device."""
|
"""Remove file from device."""
|
||||||
cmd = ["adb", "shell", "rm", pipes.quote(dst)]
|
cmd = ["adb", "shell", "rm", dst]
|
||||||
err = subprocess.check_output(cmd)
|
err = subprocess.check_output(cmd)
|
||||||
|
|
||||||
if err != "":
|
if err != "":
|
||||||
@@ -341,7 +341,7 @@ class Adb(object):
|
|||||||
|
|
||||||
def rmdir(self, dst):
|
def rmdir(self, dst):
|
||||||
"""Remove directory from device."""
|
"""Remove directory from device."""
|
||||||
cmd = ["adb", "shell", "rm", "-r", pipes.quote(dst)]
|
cmd = ["adb", "shell", "rm", "-r", dst]
|
||||||
err = subprocess.check_output(cmd)
|
err = subprocess.check_output(cmd)
|
||||||
|
|
||||||
if err != "":
|
if err != "":
|
||||||
@@ -351,7 +351,8 @@ class Adb(object):
|
|||||||
|
|
||||||
def mkdir(self, dst):
|
def mkdir(self, dst):
|
||||||
"""Make directory on the device through adb."""
|
"""Make directory on the device through adb."""
|
||||||
cmd = ["adb", "shell", "mkdir", pipes.quote(dst)]
|
|
||||||
|
cmd = ["adb", "shell", "mkdir", dst]
|
||||||
err = subprocess.check_output(cmd)
|
err = subprocess.check_output(cmd)
|
||||||
|
|
||||||
if err != "":
|
if err != "":
|
||||||
|
|||||||
Reference in New Issue
Block a user