-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
mnamer doesn't seen to know how to handle files in a gnome virtual file system, e.g. a mounted windows share.
Setup
Install mnamer with uv (using what seems to be the most current fork):
❯ uv tool install git+https://github.com/zebdo/mnamer
Mount a Windows share using gio
❯ gio mount smb://server/share
# locate the virtual file system created
❯ cd /run/user/$(id -u)/gvfs
❯ pwd
user/1000/gvfs
# identify the mounted system name
❯ ls
smb-share:server=server,share=media
# create a symlink in home dir so we don't have use the system name
❯ cd smb-share\:server=server\,share\=media
❯ ln -s $(pwd) ~/mnt/media
Go boom
Attempt to use mnamer:
❯ cd ~/mnt/media/Incoming
❯ mnamer ./
============================== CRASH REPORT BEGIN ==============================
--------------------------------- environment ----------------------------------
- date = 2025-06-29
- platform = Linux-6.14.6-300.fc42.x86_64-x86_64-with-glibc2.41
- arguments = ['./']
- cache location = /var/home/matt/.cache/mnamer-py3.13.sqlite
- python version = 3.13.3
- mnamer version = 0.1.dev309
- appdirs version = 1.4.4
- guessit version = 3.8.0
- requests version = 2.32.4
- requests cache version = 0.9.8
- teletype version = 1.3.4
--------------------------------- stack trace ----------------------------------
Traceback (most recent call last):
File "/var/home/matt/.local/share/uv/tools/mnamer/lib64/python3.13/site-packages/mnamer/__main__.py", line 23, in main
frontend.launch()
~~~~~~~~~~~~~~~^^
File "/var/home/matt/.local/share/uv/tools/mnamer/lib64/python3.13/site-packages/mnamer/frontends.py", line 81, in launch
self._process_targets()
~~~~~~~~~~~~~~~~~~~~~^^
File "/var/home/matt/.local/share/uv/tools/mnamer/lib64/python3.13/site-packages/mnamer/frontends.py", line 151, in _process_targets
self._rename_and_move_file(target)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/var/home/matt/.local/share/uv/tools/mnamer/lib64/python3.13/site-packages/mnamer/frontends.py", line 183, in _rename_and_move_file
target.relocate()
~~~~~~~~~~~~~~~^^
File "/var/home/matt/.local/share/uv/tools/mnamer/lib64/python3.13/site-packages/mnamer/target.py", line 261, in relocate
if path.isLink(destination_path) == True:
^^^^^^^^^^^
AttributeError: module 'posixpath' has no attribute 'isLink'. Did you mean: 'islink'?
=============================== CRASH REPORT END ===============================
Metadata
Metadata
Assignees
Labels
No labels