Symlink to Directory?

Any questions? Need some help?
Post Reply
Fileb0t
Posts: 5
Joined: 22 Aug 2014, 15:39

Symlink to Directory?

Post by Fileb0t »

There is probably a way to do this but after searching I couldn't find it. I want Filebot to create a symbolic link to a directory containing compressed media files. For single media files it works great, but when I try to get it to do a directory it just tries to create a file.

Manually for a directory like the following:

D:\Blah.2014.Numbers.Letters\
-blah.2014.numbers.letters.r01
-blah.2014.numbers.letters.r02
-blah.2014.numbers.letters.rar

I would just type: mklink /D "Blah (2014)" "D:\Blah.2014.Numbers.Letters"

Which would create a symbolic link to that directory named Blach (2014)

Is this possible with Filebot?
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Symlink to Directory?

Post by rednoah »

FileBot doesn't let you process archive files.

You can force FileBot to process folders instead of files:
https://www.youtube.com/watch?v=WbHPC0o4Uqo
:idea: Please read the FAQ and How to Request Help.
Fileb0t
Posts: 5
Joined: 22 Aug 2014, 15:39

Re: Symlink to Directory?

Post by Fileb0t »

rednoah wrote:FileBot doesn't let you process archive files.

You can force FileBot to process folders instead of files:
https://www.youtube.com/watch?v=WbHPC0o4Uqo
I'm not sure I understand, but this might be what I'm looking for. Is there a way to do this with the CLI?
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Symlink to Directory?

Post by rednoah »

No, via basic CLI. Yes, via Groovy.

Here's an example:
http://www.filebot.net/forums/viewtopic ... &t=5#p2211
:idea: Please read the FAQ and How to Request Help.
Fileb0t
Posts: 5
Joined: 22 Aug 2014, 15:39

Re: Symlink to Directory?

Post by Fileb0t »

rednoah wrote:No, via basic CLI. Yes, via Groovy.

Here's an example:
http://www.filebot.net/forums/viewtopic ... &t=5#p2211
No way to tell the CLI that it's a directory & not a file? That's disappointing. =[ Was hoping to avoid using scripts.
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Symlink to Directory?

Post by rednoah »

I gave you a link... Why didn't you follow the link?
Rename All Media Folder by Folder wrote:Rename movie folders:

Code: Select all

filebot -script fn:renall "path/to/movies" -non-strict --db TheMovieDB --def target=folder
Then you'll add a --action symlink and it'll probably work.
:idea: Please read the FAQ and How to Request Help.
Fileb0t
Posts: 5
Joined: 22 Aug 2014, 15:39

Re: Symlink to Directory?

Post by Fileb0t »

rednoah wrote:I gave you a link... Why didn't you follow the link?
Rename All Media Folder by Folder wrote:Rename movie folders:

Code: Select all

filebot -script fn:renall "path/to/movies" -non-strict --db TheMovieDB --def target=folder
Then you'll add a --action symlink and it'll probably work.
I followed the link, but as mentioned I was hoping not to have to use scripts. But even doing so, I tried the following

FILEBOT -script fn:renall --def target=folder "G:\Rents\TV\Suits.S04E09.720p.HDTV.X264-DIMENSION" -non-strict --action symlink --format {n}\{n}_{s00e00}_{t} --output "G:\TV"

only to produce:

Done ?(?????)?

With no link created. No errors, so I'm not sure what I'm doing incorrectly.
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Symlink to Directory?

Post by rednoah »

You're out of luck then. The folder-mode behavior is only supported for movie folders. It won't work for per-episode folders. And since your movie folders don't contain any video files folder-mode won't even work for your movies neither.

Best to ditch those archives. ;)
:idea: Please read the FAQ and How to Request Help.
Fileb0t
Posts: 5
Joined: 22 Aug 2014, 15:39

Re: Symlink to Directory?

Post by Fileb0t »

rednoah wrote:You're out of luck then. The folder-mode behavior is only supported for movie folders. It won't work for per-episode folders. And since your movie folders don't contain any video files folder-mode won't even work for your movies neither.

Best to ditch those archives. ;)
:cry:

Is there a way to feed in an argument to filebot, have it search for the match, & return the name it finds? If so I could feed it the directory name & do the mklink /D part with a regular batch file.
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Symlink to Directory?

Post by rednoah »

No, via basic CLI. Yes, via Groovy (your own custom script, so not easy).

Best to ditch those archives. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply