creating symlinks

Support for Ubuntu and other Desktop Linux distributions
Post Reply
r00ted
Posts: 5
Joined: 26 May 2024, 12:39

creating symlinks

Post by r00ted »

When creating symlinks to mounted folder shortcut has leading ../../../../../folder
Where it should be /mnt/folder/
How can I fix this?
User avatar
rednoah
The Source
Posts: 23143
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: creating symlinks

Post by rednoah »

:?: Please provide context. What are you trying to achieve? What have you tried so far? (NOTE: complete console output would be helpful)

:?: Please post filebot -script fn:sysinfo output. See How to Request Help for details.
:idea: Please read the FAQ and How to Request Help.
r00ted
Posts: 5
Joined: 26 May 2024, 12:39

Re: creating symlinks

Post by r00ted »

Shell: Select all

filebot -rename -r "/mnt/remote/rd/movies" -no-xattr --db TheMovieDB -non-strict --action symlink --output "/mnt/symlinks/import" --format {jellyfin.id}
Symlink created should be /mnt/remote/rd/movies/movie_name but creates

Code: Select all

../../../../../mnt/remote/rd/movies/movie_name

Code: Select all

FileBot 5.1.3 (r10185)
JNA Native: 6.1.1
MediaInfo: 21.09
Tools: fpcalc/1.5.1 7z/16.02 unrar/6.11
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2024-05-12 (r962)
Groovy: 4.0.15
JRE: OpenJDK Runtime Environment 11.0.22
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 6 GB Max Memory / 25 MB Used Memory
OS: Linux (amd64)
HW: Linux  5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: : AMD EPYC 7282 16-Core Processor / MemTotal: 25 GB / MemFree: 18 GB / MemAvailable: 19 GB
STORAGE: ext4 [/] @ 1.2 TB | fuse.rclone [/mnt/remote/rd] @ 1,125 TB
UID/GID: uid=1000(user) gid=1000(user) groups=1000(user),27(sudo),115(docker)
DATA: /home/user/.filebot
Package: DEB
License: FileBot License P61955801 (Valid-Until: 2025-06-01)
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 23143
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: creating symlinks

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
r00ted
Posts: 5
Joined: 26 May 2024, 12:39

Re: creating symlinks

Post by r00ted »

This does not work, no symlink created. Rather copies files over to destination
User avatar
rednoah
The Source
Posts: 23143
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: creating symlinks

Post by rednoah »

r00ted wrote: 28 May 2024, 08:00 This does not work, no symlink created. Rather copies files over to destination
:?: What does the console output say?


:idea: Note that have already confirmed that --action symlink creates relative symlinks. Setting net.filebot.symlink=absolute via the configuration file does not fundamentally change what --action symlink does. Certainly cannot result in --action symlink changing to --action copy. In any case, the console output will tell us what filebot is doing.
:idea: Please read the FAQ and How to Request Help.
r00ted
Posts: 5
Joined: 26 May 2024, 12:39

Re: creating symlinks

Post by r00ted »

Console Output: Select all

$ filebot -script fn:properties --def net.filebot.symlink=absolute
Update user-defined System Properties
* Set net.filebot.symlink = absolute
Store user-defined System Properties
* Write /home/user/.filebot/system.properties
#FileBot System Properties
#Tue May 28 09:49:54 CEST 2024
net.filebot.symlink=absolute

Shell: Select all

filebot -rename -r "/mnt/remote/rd/movies/Moovie.2023.1080p.WEBRip.x264-Group" -no-xattr --db TheMovieDB -non-strict --action symlink --action keeplink --output "/mnt/symlinks/import" --format {jellyfin.id}
r00ted
Posts: 5
Joined: 26 May 2024, 12:39

Re: creating symlinks

Post by r00ted »

I have tested now without --action keeplink & symlink was created correctly, will test a bit further before doing entire folder
User avatar
rednoah
The Source
Posts: 23143
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: creating symlinks

Post by rednoah »

You are using --action keeplink by accident:

Shell: Select all

--action symlink --action keeplink
NOTE: If you specify the same option twice, then the last one counts.


:!: --action keeplink will indeed MOVE the file and then create a symlink to the new file path at the old file path. BE AWARE THAT THE FILES WERE MOVED and NOT COPIED.
:idea: Please read the FAQ and How to Request Help.
Post Reply