Uploading to FTP - How?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
uspino
Posts: 2
Joined: 14 Dec 2013, 19:05

Uploading to FTP - How?

Post by uspino »

I use the regular FileBot script to watch a folder and rename new files but I'd love to be able to automatically upload them to an FTP once they are renamed. On FileBot's web site it reads "Transfer files from and to any server via FTP/SCP/SFTP and run commands via SSH", but I'm not able to find any information about it.

Ideally I'd like to be able to create the same folder structure in my FTP (Series name\Season Number\Episode Name).

Can anybody point me in the right direction?

Thanks!
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Uploading to FTP - How?

Post by rednoah »

FileBot comes with a complete support for Groovy and Ant.

Ant FTP/SFTP tasks:
http://ant.apache.org/manual/Tasks/ftp.html
http://ant.apache.org/manual/Tasks/scp.html

Using Ant from Groovy:
http://groovy.codehaus.org/Using+Ant+from+Groovy

e.g.

Code: Select all

def ant = new AntBuilder()
ant.ftp(remotedir: '/pub/incoming', server: 'ftp.freebsd.org', port: '21', userid: 'user', password: 'password', passive: 'yes') {
	fileset(dir: 'D:/to-be-uploaded')
}
:idea: Please read the FAQ and How to Request Help.
uspino
Posts: 2
Joined: 14 Dec 2013, 19:05

Re: Uploading to FTP - How?

Post by uspino »

Thanks!

Regrettably, my programming skills are pretty much non-existent. I guess I'll have to the file watcher script as it is and then find some external FTP software combination to upload the file.
Post Reply