mirror of
https://github.com/gryf/mc_adbfs.git
synced 2026-03-26 13:33:31 +01:00
Compare commits
3 Commits
b1a6219d21
...
0.15
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f3a22a729 | |||
| cbef13ccea | |||
|
|
9cfa834604 |
2
Makefile
2
Makefile
@@ -32,7 +32,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(FL8_EXISTS), 0)
|
ifeq ($(FL8_EXISTS), 0)
|
||||||
virtualenv_flake8:
|
virtualenv_flake8:
|
||||||
virtualenv -p python2 $(FL8_VENV)
|
virtualenv -p python3 $(FL8_VENV)
|
||||||
$(FL8_VENV)/bin/pip install flake8
|
$(FL8_VENV)/bin/pip install flake8
|
||||||
else
|
else
|
||||||
virtualenv_flake8:
|
virtualenv_flake8:
|
||||||
|
|||||||
4
adbfs
4
adbfs
@@ -413,7 +413,7 @@ class Adb(object):
|
|||||||
sys.stderr.write('Cannot read directory. Is device connected?\n')
|
sys.stderr.write('Cannot read directory. Is device connected?\n')
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
lines = [l.strip() for l in lines.split('\n') if l.strip()]
|
lines = [line.strip() for line in lines.split('\n') if line.strip()]
|
||||||
if len(lines) == 1:
|
if len(lines) == 1:
|
||||||
reg_match = self.file_re.match(lines[0])
|
reg_match = self.file_re.match(lines[0])
|
||||||
entry = File(**reg_match.groupdict())
|
entry = File(**reg_match.groupdict())
|
||||||
@@ -459,7 +459,7 @@ class Adb(object):
|
|||||||
if not root:
|
if not root:
|
||||||
lscmd = self.conf.box['ls']
|
lscmd = self.conf.box['ls']
|
||||||
else:
|
else:
|
||||||
lscmd = self.conf.box['rls'].format(shlex.quite(root.filepath))
|
lscmd = self.conf.box['rls'].format(shlex.quote(root.filepath))
|
||||||
|
|
||||||
command = self._shell_cmd(True, *shlex.split(lscmd))
|
command = self._shell_cmd(True, *shlex.split(lscmd))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user