Page 1 of 1

Symlink to Directory?

Posted: 22 Aug 2014, 15:46
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?

Re: Symlink to Directory?

Posted: 22 Aug 2014, 16:03
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

Re: Symlink to Directory?

Posted: 22 Aug 2014, 16:11
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?

Re: Symlink to Directory?

Posted: 22 Aug 2014, 16:16
by rednoah
No, via basic CLI. Yes, via Groovy.

Here's an example:
http://www.filebot.net/forums/viewtopic ... &t=5#p2211

Re: Symlink to Directory?

Posted: 22 Aug 2014, 17:25
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.

Re: Symlink to Directory?

Posted: 22 Aug 2014, 17:34
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.

Re: Symlink to Directory?

Posted: 22 Aug 2014, 17:42
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.

Re: Symlink to Directory?

Posted: 22 Aug 2014, 21:23
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. ;)

Re: Symlink to Directory?

Posted: 22 Aug 2014, 22:30
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.

Re: Symlink to Directory?

Posted: 23 Aug 2014, 02:50
by rednoah
No, via basic CLI. Yes, via Groovy (your own custom script, so not easy).

Best to ditch those archives. ;)