No signature of method: java.io.File.watch

Support for Ubuntu and other Desktop Linux distributions
Post Reply
Redbull10927
Posts: 2
Joined: 02 Sep 2016, 02:23

No signature of method: java.io.File.watch

Post by Redbull10927 »

I am using the "watcher.groovy" script along with my own script and it always outputs

Code: Select all

No signature of method: java.io.File.watch() is applicable for argument types: (Script1$_run_closure1) values: [Script1$_run_closure1@626abbd0]
Possible solutions: with(groovy.lang.Closure), each(groovy.lang.Closure), wait(), wait(long), toPath(), any()
groovy.lang.MissingMethodException: No signature of method: java.io.File.watch() is applicable for argument types: (Script1$_run_closure1) values: [Script1$_run_closure1@626abbd0]
Possible solutions: with(groovy.lang.Closure), each(groovy.lang.Closure), wait(), wait(long), toPath(), any()
	at Script1.run(Script1.groovy:4)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:113)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:28)
	at net.filebot.Main.main(Main.java:124)
Failure (°_°)
The script i have to work with it is

Code: Select all

#!/bin/sh

filebot -script fn:watcher /home/josh/Downloads --action test -non-strict --def seriesFormat="/home/josh/Videos/TV Shows/{n}/{'Season '+s}/{n} - {s00e00} - {t}"
I have no idea whats going wrong. Linux Mint 16, Filebot 4.7.2
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: No signature of method: java.io.File.watch

Post by rednoah »

I recommend using system tools like inotify to watch files and then call FileBot commands accordingly.
:idea: Please read the FAQ and How to Request Help.
Redbull10927
Posts: 2
Joined: 02 Sep 2016, 02:23

Re: No signature of method: java.io.File.watch

Post by Redbull10927 »

So I cannot use the watcher script, or is it alot of work to use?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: No signature of method: java.io.File.watch

Post by rednoah »

It's been deprecated for years, and I guess now it's finally broken.

Please use inotify-tools and the amc script.
:idea: Please read the FAQ and How to Request Help.
Post Reply