janten / dpt-rp1-py

Python script to manage a Sony DPT-RP1 without the Digital Paper App
MIT License
540 stars 135 forks source link

FUSE error: 'Node' object has no attribute 'remote_path' #102

Open janten opened 4 years ago

janten commented 4 years ago

The patch works, at least no duplicate entries occured to me now. File operations can be done sucessfully both under GUI and CLI. But there're still errors prompting. It says something like

ERROR:fuse:Uncaught exception from FUSE operation flush, returning errno.EINVAL.
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/fuse.py", line 734, in _wrapper
    return func(*args, **kwargs) or 0
  File "/usr/lib/python3.8/site-packages/fuse.py", line 884, in flush
    return self.operations('flush', self._decode_optional_path(path), fh)
  File "/usr/lib/python3.8/site-packages/fuse.py", line 1251, in __call__
    ret = getattr(self, op)(path, *args)
  File "/usr/lib/python3.8/site-packages/dptrp1/cli/dptmount.py", line 289, in flush
    remote_path = os.path.join(parent.remote_path, fname)
AttributeError: 'Node' object has no attribute 'remote_path'

The program continued like nothing happened, and I have no idea on what really went wrong.

Originally posted by @Victrid in https://github.com/janten/dpt-rp1-py/issues/101#issuecomment-587086850