From 3082a7aa103b5f68a5a8fe1092b789f84f52266f Mon Sep 17 00:00:00 2001 From: Fulgen301 Date: Tue, 12 Jun 2018 20:42:19 +0200 Subject: Fix lcmodfs --- base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'base.py') diff --git a/base.py b/base.py index 80d1990..faadc6b 100644 --- a/base.py +++ b/base.py @@ -12,9 +12,12 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -import os, llfuse, errno, stat +import os, errno, stat +import llfuse + class LCOperations(llfuse.Operations): _inode_list = None + def __init__(self): super().__init__() self._inode_list = [None, None] @@ -23,6 +26,7 @@ class LCOperations(llfuse.Operations): entry["parent_inode"] = parent_inode entry["inode"] = len(self._inode_list) entry["stat"] = stat.S_IFDIR if is_dir else stat.S_IFREG + entry["title"] = entry["title"].replace("/", chr(8260)) #⁄ self._inode_list.append(entry) def _get_inode_by_parent(self, inode_p): -- cgit v1.2.3-54-g00ecf