Nautilus (GNOME Files) extension for copying file and directory paths.
Important
This extension removes any prefixes from network drive paths (tested only with SFTP servers) and returns them as "local" paths.
Ubuntu/Debian/Mint: sudo apt install python3-nautilus python3-gi
RHEL/Fedora: sudo dnf install nautilus-python python3-gobject
Arch: sudo pacman -S python-nautilus python-gobject
git clone https://github.com/jahtz/nautilus-path.git
cd nautilus-path
make install
make uninstall
Note
File to modify: ~/.local/share/nautilus-python/extensions/nautilus-path.py
Modifications require Nautilus to be reloaded: nautilus -q
Default is a newline symbol. Can be changed by changing FILE_SEPARATOR
(line 36)