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

Fix for removing files with space/parentheses.

Also, some further py2 cleanup.
This commit is contained in:
2020-04-26 09:32:17 +02:00
parent 390f1b1112
commit 2776668913
4 changed files with 15 additions and 49 deletions

6
adbfs
View File

@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
"""
adbfs Virtual filesystem for Midnight Commander
@@ -15,7 +15,7 @@ import subprocess
import sys
import shlex
__version__ = 0.13
__version__ = 0.14
XDG_CONFIG_HOME = os.getenv('XDG_CONFIG_HOME', os.path.expanduser('~/.config'))
@@ -572,7 +572,7 @@ class Adb(object):
sys.stderr.write(self.error)
return 10
cmd = self._shell_cmd(False, 'rm', dst)
cmd = self._shell_cmd(False, 'rm %s' % shlex.quote(dst))
try:
err = check_output(cmd).strip()
except subprocess.CalledProcessError: