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:
7
adbfs
7
adbfs
@@ -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 != "":
|
||||
|
||||
Reference in New Issue
Block a user