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