Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FUSE: Renaming doesn't #19

Open
smurfix opened this issue Apr 13, 2021 · 1 comment
Open

FUSE: Renaming doesn't #19

smurfix opened this issue Apr 13, 2021 · 1 comment

Comments

@smurfix
Copy link

smurfix commented Apr 13, 2021

/mnt/py$ touch x
/mnt/py$ mv x y
mv: cannot move 'x' to a subdirectory of itself, 'y'
/mnt/py$ 

results in:

Uncaught exception from FUSE operation rename, returning errno.EINVAL.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/fusepy.py", line 734, in _wrapper
    return func(*args, **kwargs) or 0
  File "/usr/lib/python3/dist-packages/fusepy.py", line 805, in rename
    return self.operations('rename', old.decode(self.encoding),
  File "/usr/lib/python3/dist-packages/fusepy.py", line 1076, in __call__
    return getattr(self, op)(*args)
  File "/home/smurf/src/mpy-repl-tool/there/fuse_drive.py", line 117, in rename
    return self._remote(old).rename(new)
  File "/home/smurf/src/mpy-repl-tool/there/repl_connection.py", line 410, in rename
    self._repl.evaluate(f'import os; print(os.rename({self.as_posix()!r}, {path_to.as_posix()!r}))')
AttributeError: 'str' object has no attribute 'as_posix'
@smurfix
Copy link
Author

smurfix commented Apr 13, 2021

Client is the current micropython snapshot on ESP32.

@smurfix smurfix changed the title Renaming doesn't FUSE: Renaming doesn't Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant