mirror of
https://github.com/gryf/mc_adbfs.git
synced 2026-03-27 13:53:35 +01:00
Compare commits
8 Commits
0.14
...
b1a6219d21
| Author | SHA1 | Date | |
|---|---|---|---|
| b1a6219d21 | |||
| d16f0f06b8 | |||
| c2f07f5516 | |||
| e9b196eaf8 | |||
| 039c078a35 | |||
|
|
b088c45d3f | ||
|
|
c5559f7d41 | ||
|
|
9ffa1a13af |
@@ -76,6 +76,7 @@ You can configure behaviour of this plugin using ``.ini`` file located under
|
|||||||
root =
|
root =
|
||||||
adb_command = adb
|
adb_command = adb
|
||||||
adb_connect =
|
adb_connect =
|
||||||
|
try_su = false
|
||||||
|
|
||||||
where:
|
where:
|
||||||
|
|
||||||
|
|||||||
5
adbfs
5
adbfs
@@ -80,6 +80,7 @@ class Conf(object):
|
|||||||
self.suppress_colors = False
|
self.suppress_colors = False
|
||||||
self.adb_command = 'adb'
|
self.adb_command = 'adb'
|
||||||
self.adb_connect = ''
|
self.adb_connect = ''
|
||||||
|
self.try_su = False
|
||||||
|
|
||||||
self.read()
|
self.read()
|
||||||
self.connect()
|
self.connect()
|
||||||
@@ -187,7 +188,7 @@ class Conf(object):
|
|||||||
if not os.path.exists(conf_fname):
|
if not os.path.exists(conf_fname):
|
||||||
return
|
return
|
||||||
|
|
||||||
cfg = configparser.SafeConfigParser()
|
cfg = configparser.ConfigParser()
|
||||||
cfg_map = {'debug': (cfg.getboolean, 'debug'),
|
cfg_map = {'debug': (cfg.getboolean, 'debug'),
|
||||||
'dirs_to_skip': (cfg.get, 'dirs_to_skip'),
|
'dirs_to_skip': (cfg.get, 'dirs_to_skip'),
|
||||||
'suppress_colors': (cfg.get, 'suppress_colors'),
|
'suppress_colors': (cfg.get, 'suppress_colors'),
|
||||||
@@ -204,7 +205,7 @@ class Conf(object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if self.dirs_to_skip and isinstance(self.dirs_to_skip, str):
|
if self.dirs_to_skip and isinstance(self.dirs_to_skip, str):
|
||||||
self.dirs_to_skip = json.loads(self.dirs_to_skip, encoding='ascii')
|
self.dirs_to_skip = json.loads(self.dirs_to_skip)
|
||||||
self.dirs_to_skip = [x.encode('utf-8') for x in self.dirs_to_skip]
|
self.dirs_to_skip = [x.encode('utf-8') for x in self.dirs_to_skip]
|
||||||
else:
|
else:
|
||||||
self.dirs_to_skip = []
|
self.dirs_to_skip = []
|
||||||
|
|||||||
Reference in New Issue
Block a user