From d1e8f42429938b840c3fe354fd11852677a47e97 Mon Sep 17 00:00:00 2001 From: Roman Dobosz Date: Sat, 4 Jun 2016 16:46:06 +0200 Subject: [PATCH] Removing quoting where it is unnecessary --- adbfs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/adbfs b/adbfs index 3bc8e3d..6a78cf8 100755 --- a/adbfs +++ b/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 != "":